Commit a2266339 authored by alex's avatar alex

spit an error message in case of invalid chunk

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8014 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a0285480
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment