[FFmpeg-devel] [PATCH] [RFC] libavcodec/h264_mp4toannexb_bsf.c: Copy const data

Olivier Galibert galibert
Mon Feb 16 17:06:41 CET 2009

On Mon, Feb 16, 2009 at 04:50:13PM +0100, Benjamin Larsson wrote:
> Benoit Fouet wrote:
> > you are missing the fact that output buffer is not allocated at that time.
> > BTW, I don't think copying is a good idea, but the fact that output and input data can be the same should be documented, as already told someone else.
> >
> > Ben
> >
> >   
> Thus violating the const qualifier ?

"const" does not mean "restrict".  It just means you, the called
function, is not allowed to modify data through that pointer, not that
it can't be modified through another one aliasing it.


More information about the ffmpeg-devel mailing list