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

Patrik Kullman patrik
Sun Feb 22 10:19:28 CET 2009


On Tue, 2009-02-17 at 15:45 +0100, Patrik Kullman wrote:
> On Tue, 2009-02-17 at 15:43 +0100, Patrik Kullman wrote:
> > Trying yet again!
> > 
> > I never seem to recall if the ending to "If at first you don't succeed"
> > is "try again" or "stop, failure might be your thing", so here goes.
> > 
> > All calls to avpicture_fill() that I can find seem to use an
> > av_malloc()'d buffer, since avpicture_fill() will actually use that
> > buffer for the image data.
> > 
> > Thus, I copy the const buf into an av_malloc()'d picture_data buffer
> > which avpicture_fill() then gets to play with.
> > 
> > Removes warning:
> > libavcodec/rawdec.c: In function ?raw_decode?:
> > libavcodec/rawdec.c:125: warning: passing argument 2 of ?avpicture_fill?
> > discards qualifiers from pointer target type
> > 
> > 
> > Any better than previous attempts?
> 
> And the actual patch...

Anyone want to comment regarding the actual patch contents? ;)





More information about the ffmpeg-devel mailing list