diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-21 13:53:41 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-21 13:53:41 +0000 |
commit | 264e6c23fef6ea156cb9653f911e6ec4e95b4813 (patch) | |
tree | c68100d66636115da52c2de355ef0c865df8b602 /libmpdemux/mpeg_hdr.c | |
parent | 28cf6ea2be72588dba3b35db864bf63182d1b17f (diff) | |
download | mpv-264e6c23fef6ea156cb9653f911e6ec4e95b4813.tar.bz2 mpv-264e6c23fef6ea156cb9653f911e6ec4e95b4813.tar.xz |
Parse and use the information from the frame rate extension header for MPEG-2.
-identify still does not show the right values though.
Fixes bug #1636.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30681 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/mpeg_hdr.c')
-rw-r--r-- | libmpdemux/mpeg_hdr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libmpdemux/mpeg_hdr.c b/libmpdemux/mpeg_hdr.c index c07cd6bf16..af1b9223dd 100644 --- a/libmpdemux/mpeg_hdr.c +++ b/libmpdemux/mpeg_hdr.c @@ -81,6 +81,9 @@ static int header_process_sequence_extension (mp_mpeg_header_t * picture, return 1; picture->progressive_sequence = (buffer[1] >> 3) & 1; + picture->frame_rate_extension_n = ((buffer[5] >> 5) & 3) + 1; + picture->frame_rate_extension_d = (buffer[5] & 0x1f) + 1; + picture->mpeg1 = 0; return 0; } |