[Ffmpeg-devel] [PATCH] fix for gray16le segfault in imgconvert
Ivo
ivop
Sat Apr 7 19:37:18 CEST 2007
On Saturday 07 April 2007 19:20, Michael Niedermayer wrote:
> On Sat, Apr 07, 2007 at 07:15:38PM +0200, Ivo wrote:
> > - gray16_to_gray(dst, src + 1, width, height);
> > + AVPicture tmpsrc;
> > + memcpy(&tmpsrc, src, sizeof(AVPicture));
> > + tmpsrc.data[0]++;
> > + gray16_to_gray(dst, &tmpsrc, width, height);
> > }
>
> AVPicture tmpsrc= *src;
Fourth try. How many more wrong things can I do in three lines of code? ;)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gray16lefix.patch
Type: text/x-diff
Size: 559 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070407/ef013c58/attachment.patch>
More information about the ffmpeg-devel
mailing list