Mercurial > libavformat.hg
diff vc1test.c @ 5196:641bd7b1c746 libavformat
Do not set 0 FPS in VC-1 test stream format demuxer.
author | kostya |
---|---|
date | Tue, 15 Sep 2009 16:36:53 +0000 |
parents | 006ff72fcb67 |
children | 536e5527c1e0 |
line wrap: on
line diff
--- a/vc1test.c Tue Sep 15 15:28:11 2009 +0000 +++ b/vc1test.c Tue Sep 15 16:36:53 2009 +0000 @@ -73,6 +73,10 @@ 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; }