diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2007-02-18 00:47:13 +0000 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2007-02-18 00:47:13 +0000 |
commit | 89cf4098aafc000ff758f278b9dc17b6373101d2 (patch) | |
tree | 89a79f0a24c4ef4ffcccb7f1ac371686c818d5bf /libavformat/flic.c | |
parent | c9639c394c822c66f9547874b391e4757de4e566 (diff) | |
download | ffmpeg-89cf4098aafc000ff758f278b9dc17b6373101d2.tar.gz |
spit an error message in case of invalid chunk
Originally committed as revision 8014 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/flic.c')
-rw-r--r-- | libavformat/flic.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/flic.c b/libavformat/flic.c index e6aa26b1d5..0c3a7f01f9 100644 --- a/libavformat/flic.c +++ b/libavformat/flic.c @@ -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; |