[FFmpeg-devel] [PATCH] fix crash in ffplay.c #2

Ronald S. Bultje rsbultje
Tue Dec 30 00:27:54 CET 2008


when av_find_stream_info() completes but not all variables have been
found, some values (e.g. a channel count) can be left unset (0).
ffplay.c doesn't take that into account and uses channels as a
denominator in a division in line 783 (and following). The attached
patch fixes this (wrongly, but I couldn't think of anything better and
maybe someone interested can actually do something useful with it :-)

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: x1
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081229/9a101b4d/attachment.txt>

More information about the ffmpeg-devel mailing list