changeset 1801:9cd35d039830 libavformat

spit an error message in case of invalid chunk
author alex
date Sun, 18 Feb 2007 00:47:13 +0000
parents 3edc6f0468be
children 15462a5de747
files flic.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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;