[Ffmpeg-devel] [PATCH] small bugfix in av_find_opt()

Michael Niedermayer michaelni
Fri Mar 23 11:43:07 CET 2007


Hi

On Fri, Mar 23, 2007 at 11:20:26AM +0000, Kamil Nowosad wrote:
> Hi,
> While making some improvements in my tiff encoder i found a small bug
> in av_find_opt(). 
> Because some of the AVOption structures have field unit = NULL, the
> function could pass NULL to strcmp and cause a segfault.
> 
> example which caused that on my computer is: 
> ffmpeg -f image2 -vcodec tiff -i foo.tif -f image2 -vcodec png -coder ac
> foo.png 
> and broke while parsing then "-coder ac" option

patch looks ok


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- 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/20070323/8efbca6a/attachment.pgp>



More information about the ffmpeg-devel mailing list