Page 1 of 1

I got an error when saving the pes data

Posted: 18 Mar 2004 15:30
by tjuwangli
I want to save the pes data from a TS stream. I write it in the DemuxTS function. After the GatherPES, I write this :
fwrite((p_data->p_buffer),1,p_data->p_buffer->i_size,temp);

But the compiler tell me that an error : error C2037: left of 'i_size' specifies undefined struct/union 'data_buffer_t'

I don't know why it is an error. Please help me . Thank you .

By the way , my system is Win2000 and I use VC++6.0 to compile it.

I got it

Posted: 19 Mar 2004 02:17
by tjuwangli
I find the defination of the struct data_buffer_t is in input_ext-plugins.c. The file where I used the fwrite don't include it. So the compiler can't find it.