[Ffmpeg-devel] [PATCH] fix for gray16le segfault in imgconvert
Sat Apr 7 18:58:37 CEST 2007
On Sat, Apr 07, 2007 at 06:47:17PM +0200, Ivo wrote:
> On Saturday 07 April 2007 18:35, Michael Niedermayer wrote:
> > On Sat, Apr 07, 2007 at 06:26:32PM +0200, Ivo wrote:
> > > As for the patch, I wasn't sure if I am supposed to use a temporary
> > > AVPicture * en dereference that or remove the const qualifier from the
> > > variable list?
> > of course you should use a temporary
> Okay, how about this?
> static void gray16le_to_gray(AVPicture *dst, const AVPicture *src,
> int width, int height)
> - gray16_to_gray(dst, src + 1, width, height);
> + AVPicture *tmpsrc = (AVPicture *) src;
> + tmpsrc->data++;
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I count him braver who overcomes his desires than him who conquers his
enemies for the hardest victory is over self. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the ffmpeg-devel