[FFmpeg-cvslog] r19863 - trunk/libavformat/vc1test.c

kostya subversion
Tue Sep 15 18:36:53 CEST 2009


Author: kostya
Date: Tue Sep 15 18:36:53 2009
New Revision: 19863

Log:
Do not 0 FPS in VC-1 test streams format demuxer

Modified:
   trunk/libavformat/vc1test.c

Modified: trunk/libavformat/vc1test.c
==============================================================================
--- trunk/libavformat/vc1test.c	Tue Sep 15 18:18:16 2009	(r19862)
+++ trunk/libavformat/vc1test.c	Tue Sep 15 18:36:53 2009	(r19863)
@@ -73,6 +73,10 @@ static int vc1t_read_header(AVFormatCont
     if(fps == 0xFFFFFFFF)
         av_set_pts_info(st, 32, 1, 1000);
     else{
+        if (!fps) {
+            av_log(s, AV_LOG_ERROR, "Zero FPS specified, defaulting to 1 FPS\n");
+            fps = 1;
+        }
         av_set_pts_info(st, 24, 1, fps);
         st->duration = frames;
     }



More information about the ffmpeg-cvslog mailing list