diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-09-15 16:36:53 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-09-15 16:36:53 +0000 |
commit | 9155be47d1e94f392ef8066f911c49e2a19358bc (patch) | |
tree | ae8937ebbd38b6845355cd26de58d57746a5e7f6 | |
parent | 6776061b04b6f9f669d8ec59f6112e8a9b1dad92 (diff) | |
download | ffmpeg-9155be47d1e94f392ef8066f911c49e2a19358bc.tar.gz |
Do not set 0 FPS in VC-1 test stream format demuxer.
Originally committed as revision 19863 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/vc1test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/vc1test.c b/libavformat/vc1test.c index e55772a171..11a4a6f4a7 100644 --- a/libavformat/vc1test.c +++ b/libavformat/vc1test.c @@ -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; } |