projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6776061
)
Do not set 0 FPS in VC-1 test stream format demuxer.
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Tue, 15 Sep 2009 16:36:53 +0000
(16:36 +0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Tue, 15 Sep 2009 16:36:53 +0000
(16:36 +0000)
Originally committed as revision 19863 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/vc1test.c
patch
|
blob
|
history
diff --git
a/libavformat/vc1test.c
b/libavformat/vc1test.c
index
e55772a
..
11a4a6f
100644
(file)
--- 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;
}