[FFmpeg-cvslog] r26188 - trunk/libavformat/yuv4mpeg.c

cehoyos subversion
Sun Jan 2 06:01:47 CET 2011


Author: cehoyos
Date: Sun Jan  2 06:01:46 2011
New Revision: 26188

Log:
Fix a floating point exception for invalid framerate, fixes issue 2470.

Patch by Daniel Kang, daniel.d.kang at gmail

Modified:
   trunk/libavformat/yuv4mpeg.c

Modified: trunk/libavformat/yuv4mpeg.c
==============================================================================
--- trunk/libavformat/yuv4mpeg.c	Sat Jan  1 23:27:16 2011	(r26187)
+++ trunk/libavformat/yuv4mpeg.c	Sun Jan  2 06:01:46 2011	(r26188)
@@ -316,7 +316,7 @@ static int yuv4_read_header(AVFormatCont
             pix_fmt = alt_pix_fmt;
     }
 
-    if (raten == 0 && rated == 0) {
+    if (raten <= 0 || rated <= 0) {
         // Frame rate unknown
         raten = 25;
         rated = 1;



More information about the ffmpeg-cvslog mailing list