]> git.sesse.net Git - ffmpeg/commitdiff
spit an error message in case of invalid chunk
authorAlex Beregszaszi <alex@rtfs.hu>
Sun, 18 Feb 2007 00:47:13 +0000 (00:47 +0000)
committerAlex Beregszaszi <alex@rtfs.hu>
Sun, 18 Feb 2007 00:47:13 +0000 (00:47 +0000)
Originally committed as revision 8014 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/flic.c

index e6aa26b1d5d829e7d440ac302cc08a4c7dd38465..0c3a7f01f96fd1b6453ca096494f47868a69bc78 100644 (file)
@@ -146,8 +146,10 @@ static int flic_read_header(AVFormatContext *s,
          *  therefore, the frame pts increment = n * 90
          */
         flic->frame_pts_inc = speed * 90;
-    } else
+    } else {
+        av_log(s, AV_LOG_INFO, "Invalid or unsupported magic chunk in file\n");
         return AVERROR_INVALIDDATA;
+    }
 
     if (flic->frame_pts_inc == 0)
         flic->frame_pts_inc = FLIC_DEFAULT_PTS_INC;