[Ffmpeg-devel] How to get pointer to MpegEncContext structurefrom AVCodec / AVCodecContext

Gary Pearman gpearman
Thu May 18 09:54:28 CEST 2006


I'm off to work now so I'll try that when I get there. Thanks everyone.

Cheers,
Gaz.

On 18/05/06, Rich Felker <dalias at aerifal.cx> wrote:
> On Wed, May 17, 2006 at 08:34:12PM +0100, Gary Pearman wrote:
> > Let's say that I can allocate my own buffers for the decoded frames,
> > what about the frames used in the MpegEncContext structure (i.e.
> > next_picture, prev_picture)? I really don't want to have to do lots of
> > memcpy()s or rewrite the codec to use my own buffer allocation scheme
> > :-)
>
> If you implement get_buffer and set the context to call it, everything
> will work exactly the correct way. If there are some codecs which
> won't use the user-provided buffers in this way, please send a patch
> to fix them. :)
>
> Rich
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>





More information about the ffmpeg-devel mailing list