[Ffmpeg-devel] [PATCH] fix for gray16le segfault in imgconvert

Michael Niedermayer michaelni
Sat Apr 7 18:35:20 CEST 2007


On Sat, Apr 07, 2007 at 06:26:32PM +0200, Ivo wrote:
> Hi,
> See subject. This bug probably went unnoticed because there is no decoder 
> that produces gray16le, but as I am changing pnm.c to work in machine order 
> for 16-bit pix_fmt's and I am on a LE machine, I ran into this. swscale 
> works fine btw.
> 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

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When you are offended at any man's fault, turn to yourself and study your
own failings. Then you will forget your anger. -- Epictetus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070407/c171d12a/attachment.pgp>

More information about the ffmpeg-devel mailing list