[FFmpeg-devel] NC4600 camera code
Fri Jan 9 00:13:45 CET 2009
nicolas martin wrote:
> Hi there,
> It's been a long time, but I have been working on my demuxer for my
> 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
> 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.
More information about the ffmpeg-devel