[FFmpeg-cvslog] r12806 - trunk/libavformat/avidec.c

michael subversion
Sun Apr 13 13:45:19 CEST 2008


Author: michael
Date: Sun Apr 13 13:45:18 2008
New Revision: 12806

Log:
Print warning if scale/rate is invalid.


Modified:
   trunk/libavformat/avidec.c

Modified: trunk/libavformat/avidec.c
==============================================================================
--- trunk/libavformat/avidec.c	(original)
+++ trunk/libavformat/avidec.c	Sun Apr 13 13:45:18 2008
@@ -380,6 +380,7 @@ static int avi_read_header(AVFormatConte
             ast->scale = get_le32(pb);
             ast->rate = get_le32(pb);
             if(!(ast->scale && ast->rate)){
+                av_log(s, AV_LOG_WARNING, "Scale/Rate is %u/%u which is invalid. (This file has been generated by broken software)\n", ast->scale, ast->rate);
                 if(frame_period){
                     ast->rate = 1000000;
                     ast->scale = frame_period;




More information about the ffmpeg-cvslog mailing list