Browse Source

spit an error message in case of invalid chunk

Originally committed as revision 8014 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Alex Beregszaszi 18 years ago
parent
commit
89cf4098aa
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavformat/flic.c

+ 3
- 1
libavformat/flic.c View 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;


Loading…
Cancel
Save