diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2007-08-09 01:08:28 +0000 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2007-08-09 01:08:28 +0000 |
commit | 3a5729eae1c6cf8baa1751fcbfbed1f7b27136ad (patch) | |
tree | e879ebf61a2e7b53b02f62beea0ba6d3b45bb841 /libavcodec/cavsdec.c | |
parent | 7ae7300ee3bc830d9ece8c4c1fa27330b76c8218 (diff) | |
download | ffmpeg-3a5729eae1c6cf8baa1751fcbfbed1f7b27136ad.tar.gz |
use skip_bits where appropriate
Originally committed as revision 10005 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cavsdec.c')
-rw-r--r-- | libavcodec/cavsdec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/cavsdec.c b/libavcodec/cavsdec.c index d03a79b4a4..3dc53dd96b 100644 --- a/libavcodec/cavsdec.c +++ b/libavcodec/cavsdec.c @@ -432,7 +432,7 @@ static inline void check_for_slice(AVSContext *h) { int align; align = (-get_bits_count(gb)) & 7; if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) { - get_bits_long(gb,24+align); + skip_bits_long(gb,24+align); h->stc = get_bits(gb,8); decode_slice_header(h,gb); } @@ -455,7 +455,7 @@ static int decode_pic(AVSContext *h) { return -1; ff_init_scantable(s->dsp.idct_permutation,&h->scantable,ff_zigzag_direct); } - get_bits(&s->gb,16);//bbv_dwlay + skip_bits(&s->gb,16);//bbv_dwlay if(h->stc == PIC_PB_START_CODE) { h->pic_type = get_bits(&s->gb,2) + FF_I_TYPE; if(h->pic_type > FF_B_TYPE) { @@ -469,7 +469,7 @@ static int decode_pic(AVSContext *h) { } else { h->pic_type = FF_I_TYPE; if(get_bits1(&s->gb)) - get_bits(&s->gb,16);//time_code + skip_bits(&s->gb,16);//time_code } /* release last B frame */ if(h->picture.data[0]) @@ -501,7 +501,7 @@ static int decode_pic(AVSContext *h) { if(h->progressive) h->pic_structure = 1; else if(!(h->pic_structure = get_bits1(&s->gb) && (h->stc == PIC_PB_START_CODE)) ) - get_bits1(&s->gb); //advanced_pred_mode_disable + skip_bits1(&s->gb); //advanced_pred_mode_disable skip_bits1(&s->gb); //top_field_first skip_bits1(&s->gb); //repeat_first_field h->qp_fixed = get_bits1(&s->gb); |