Mercurial > libavformat.hg
changeset 5195:006ff72fcb67 libavformat
Check for explicit 32-bit FPS value so it works on 64-bit systems too
author | kostya |
---|---|
date | Tue, 15 Sep 2009 15:28:11 +0000 |
parents | ead0d47f2fb7 |
children | 641bd7b1c746 |
files | vc1test.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/vc1test.c Tue Sep 15 15:22:36 2009 +0000 +++ b/vc1test.c Tue Sep 15 15:28:11 2009 +0000 @@ -46,7 +46,8 @@ { 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 @@ 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);