diff options
author | David Conrad <lessen42@gmail.com> | 2009-05-14 00:02:07 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2009-05-14 00:02:07 +0000 |
commit | 0a8dedc9e18eb112ea468f5bf0f32bdec74cdd64 (patch) | |
tree | 2a620a5f9576bbfccdb0b77f06b01bad453a22fe /libavcodec | |
parent | 97d4318347bb298eed36ef53e5264cb065f7993e (diff) | |
download | ffmpeg-0a8dedc9e18eb112ea468f5bf0f32bdec74cdd64.tar.gz |
Use skip_bits_long() for large skips
This fixes ogg/theora on ARM (more generally the A32 bitstream reader)
Originally committed as revision 18819 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpc7.c | 2 | ||||
-rw-r--r-- | libavcodec/nellymoserdec.c | 2 | ||||
-rw-r--r-- | libavcodec/vp3.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/mpc7.c b/libavcodec/mpc7.c index a15f117427..614a418684 100644 --- a/libavcodec/mpc7.c +++ b/libavcodec/mpc7.c @@ -78,7 +78,7 @@ static av_cold int mpc7_decode_init(AVCodecContext * avctx) av_log(avctx, AV_LOG_ERROR, "Too many bands: %i\n", c->maxbands); return -1; } - skip_bits(&gb, 88); + skip_bits_long(&gb, 88); c->gapless = get_bits1(&gb); c->lastframelen = get_bits(&gb, 11); av_log(avctx, AV_LOG_DEBUG, "IS: %d, MSS: %d, TG: %d, LFL: %d, bands: %d\n", diff --git a/libavcodec/nellymoserdec.c b/libavcodec/nellymoserdec.c index 94f441890e..98f0ec3224 100644 --- a/libavcodec/nellymoserdec.c +++ b/libavcodec/nellymoserdec.c @@ -103,7 +103,7 @@ static void nelly_decode_block(NellyMoserDecodeContext *s, aptr = audio + i * NELLY_BUF_LEN; init_get_bits(&s->gb, block, NELLY_BLOCK_LEN * 8); - skip_bits(&s->gb, NELLY_HEADER_BITS + i*NELLY_DETAIL_BITS); + skip_bits_long(&s->gb, NELLY_HEADER_BITS + i*NELLY_DETAIL_BITS); for (j = 0; j < NELLY_FILL_LEN; j++) { if (bits[j] <= 0) { diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index c1ca98f3c4..43a3658c33 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -2243,7 +2243,7 @@ static av_cold int theora_decode_init(AVCodecContext *avctx) } // FIXME: Check for this as well. - skip_bits(&gb, 6*8); /* "theora" */ + skip_bits_long(&gb, 6*8); /* "theora" */ switch(ptype) { |