Browse Source

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

Originally committed as revision 19863 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Kostya Shishkov 15 years ago
parent
commit
9155be47d1
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavformat/vc1test.c

+ 4
- 0
libavformat/vc1test.c View File

@@ -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;
}


Loading…
Cancel
Save