[FFmpeg-devel] [PATCH] Fix possible SIGFPEs with bad mov timings. Based on chromium patch 35_mov_bad_timings.patch

Albert J. Wong (王重傑) ajwong
Thu Nov 19 07:18:18 CET 2009

This patch is based off of the chromium patch:


It adds checks to ensure that the time_scale in the MOVContext or the
MOVStreamContext are not 0.  If time_scale is allowed to be 0, then later in
the code path, it is possible for an av_rescale to be called with 0 as the
denominator producing a SIGFPE.

This patch was tested against r20546 of mainline, and passed the regression
test suite run on an argumentless ./configure.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 35_mov_bad_timings_upstream.patch
Type: text/x-patch
Size: 606 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091118/fe17067f/attachment.bin>

More information about the ffmpeg-devel mailing list