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

Mean fixounet
Wed May 17 19:44:58 CEST 2006


Gary Pearman wrote:

> I want ffmpeg to decode MPEG4 data into my own pre-allocated buffers.
> Also, I need access to the last and next pictures contained within the
> MpegEncContext structure, or I need them to be placed in buffers
> allocated by me, not by the codec.
>
> Basically I want to avoid using memcpy() to move the decoded frames
> (including the next/prev frames) from one set of buffers to another.
>
> Cheers,
> Gaz.

You can probably do that filling avcodec->get_buffer & 
avcodec->release_buffer





More information about the ffmpeg-devel mailing list