# HG changeset patch # User alex # Date 1171759633 0 # Node ID 9cd35d0398304b5436419e3cd411c2febdacd25a # Parent 3edc6f0468bea4003b970cfc7dee40f9543c98d2 spit an error message in case of invalid chunk diff -r 3edc6f0468be -r 9cd35d039830 flic.c --- 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;