Commit 8fd22602 authored by kostya's avatar kostya

Check for explicit 32-bit FPS value so it works on 64-bit systems too

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19861 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 46054489
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment