Commit e9b9b2d3 authored by kostya's avatar kostya

Do not 0 FPS in VC-1 test streams format demuxer

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19863 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d38b1b16
......@@ -73,6 +73,10 @@ static int vc1t_read_header(AVFormatContext *s,
if(fps == 0xFFFFFFFF)
av_set_pts_info(st, 32, 1, 1000);
else{
if (!fps) {
av_log(s, AV_LOG_ERROR, "Zero FPS specified, defaulting to 1 FPS\n");
fps = 1;
}
av_set_pts_info(st, 24, 1, fps);
st->duration = frames;
}
......
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