[FFmpeg-devel] NC4600 camera code

nicolas martin elvadrias
Fri Jan 9 19:11:32 CET 2009

> nicolas martin wrote:
>> Hi there,
>> It's been a long time, but I have been working on my demuxer for my
>> cameras.
>> I put all my code in a separate file.
>> However I have  a problem.
>> I've seen that you can have a private structure in the priv_data  
>> field
>> of an AVFormatContext.
>> So I put all my private fields here.
>> But I have to modify the standard get_partial_buffer
> This is a sign that you are doing something wrong.
> You should explain why you need a modified version of  
> get_partial_buffer
> and then someone may explain you how avoiding it.
>> So I made one myself that takes a pointer on my structure as an
>> argument.
>> But If I want to use standard functions like fill_buffer defined in
>> aviobuf.c, which file should I included ???
> fill_buffer is static in aviobuf.c so you can't use it outside
> aviobuf.c. If you really need to implement modified version
> of get_partial_buffer, you have to do it inside aviobuf.c,
> but I'm pretty sure you don't need to do this.

I need some help here !

I think I understood I don't have to change anything in the  
ByteIOContext structure ...
So whatever I have to do on the data, it has to be done on the  
AVPacket data, that's filled by the
get_partial_buffer method.

So if I need to skip some bytes, should I do a memmove on the data  
field of the packet ?

> Aurel
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel

More information about the ffmpeg-devel mailing list