[FFmpeg-devel] [RFC] Avoid av_read_frame memory copy in implementation

Måns Rullgård mans
Wed May 26 16:52:19 CEST 2010

"Ronald S. Bultje" <rsbultje at gmail.com> writes:

> Hi,
> On Wed, May 26, 2010 at 7:06 AM, Cyril Russo
> <stage.nexvision at laposte.net> wrote:
>> Currently, one must allocate another buffer to store the returned packet's
>> data and copy the data, because initial memory is reused when calling
>> av_read_frame again.
> Huh? That sounds like a bug, demuxers freshly allocate memory for
> each packet.

No, they don't.  Try it yourself.

M?ns Rullg?rd
mans at mansr.com

More information about the ffmpeg-devel mailing list