Skip to content
Snippets Groups Projects
Commit 9155be47 authored by Kostya Shishkov's avatar Kostya Shishkov
Browse files

Do not set 0 FPS in VC-1 test stream format demuxer.

Originally committed as revision 19863 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 6776061b
No related branches found
No related tags found
No related merge requests found
...@@ -73,6 +73,10 @@ static int vc1t_read_header(AVFormatContext *s, ...@@ -73,6 +73,10 @@ static int vc1t_read_header(AVFormatContext *s,
if(fps == 0xFFFFFFFF) if(fps == 0xFFFFFFFF)
av_set_pts_info(st, 32, 1, 1000); av_set_pts_info(st, 32, 1, 1000);
else{ 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); av_set_pts_info(st, 24, 1, fps);
st->duration = frames; st->duration = frames;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment