diff options
author | Christophe Thommeret <hftom@free.fr> | 2009-09-28 14:58:59 +0100 |
---|---|---|
committer | Christophe Thommeret <hftom@free.fr> | 2009-09-28 14:58:59 +0100 |
commit | 29150fd62b65fa758dc12b2304aed0211663fce2 (patch) | |
tree | d6de13bc6bd8e1221367d4dacf92cbb3cdbc771b | |
parent | a6d4dfe992ebd4f67e4745b09654cf08df2b9205 (diff) | |
download | xine-lib-29150fd62b65fa758dc12b2304aed0211663fce2.tar.gz xine-lib-29150fd62b65fa758dc12b2304aed0211663fce2.tar.bz2 |
Fix consumed bits.
-rw-r--r-- | src/libvdpau/vdpau_vc1.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libvdpau/vdpau_vc1.c b/src/libvdpau/vdpau_vc1.c index 9e17c605a..f0bc974a4 100644 --- a/src/libvdpau/vdpau_vc1.c +++ b/src/libvdpau/vdpau_vc1.c @@ -307,7 +307,8 @@ static void sequence_header_advanced( vdpau_vc1_decoder_t *this_gen, uint8_t *bu } } if ( read_bits( &sequence->br, 1 ) ) { - lprintf("color_standard = %d\n", read_bits( &sequence->br, 8 )); + int col = read_bits( &sequence->br, 8 ); + lprintf("color_standard = %d\n", col); read_bits( &sequence->br, 16 ); } } @@ -439,7 +440,7 @@ static void picture_header( vdpau_vc1_decoder_t *this_gen, uint8_t *buf, int len if ( info->picture_type == B_FRAME ) { tmp = read_bits( &sequence->br, 3 ); if ( tmp==7 ) { - tmp = read_bits( &sequence->br, 7 ); + tmp = (tmp<<3) | read_bits( &sequence->br, 4 ); if ( tmp==127 ) info->picture_type = BI_FRAME; } |