diff flic.c @ 1801:9cd35d039830 libavformat

spit an error message in case of invalid chunk
author alex
date Sun, 18 Feb 2007 00:47:13 +0000
parents a782462e2497
children 1a3c9056982a
line wrap: on
line diff
--- a/flic.c	Sat Feb 17 02:46:47 2007 +0000
+++ b/flic.c	Sun Feb 18 00:47:13 2007 +0000
@@ -146,8 +146,10 @@
          *  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;