aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/vc1test.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2009-09-15 15:28:11 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2009-09-15 15:28:11 +0000
commit05db409c280acc22362c2e79ea67abe3873043a5 (patch)
tree8ebfaceacc2497369369c0c0fcfbaca7c7995d64 /libavformat/vc1test.c
parent23218a980170a7bad1e2359889fb1d8da73777e1 (diff)
downloadffmpeg-05db409c280acc22362c2e79ea67abe3873043a5.tar.gz
Check for explicit 32-bit FPS value so it works on 64-bit systems too
Originally committed as revision 19861 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/vc1test.c')
-rw-r--r--libavformat/vc1test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/vc1test.c b/libavformat/vc1test.c
index f7ac984c9b..e55772a171 100644
--- a/libavformat/vc1test.c
+++ b/libavformat/vc1test.c
@@ -46,7 +46,8 @@ static int vc1t_read_header(AVFormatContext *s,
{
ByteIOContext *pb = s->pb;
AVStream *st;
- int fps, frames;
+ int frames;
+ uint32_t fps;
frames = get_le24(pb);
if(get_byte(pb) != 0xC5 || get_le32(pb) != 4)
@@ -69,7 +70,7 @@ static int vc1t_read_header(AVFormatContext *s,
return -1;
url_fskip(pb, 8);
fps = get_le32(pb);
- if(fps == -1)
+ if(fps == 0xFFFFFFFF)
av_set_pts_info(st, 32, 1, 1000);
else{
av_set_pts_info(st, 24, 1, fps);