[FFmpeg-devel] [PATCH 2/5] avcodec: Replace skip_bits_long() by skip_bits() where possible

Michael Niedermayer michael at niedermayer.cc
Sun Nov 24 17:45:03 EET 2019


Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavcodec/indeo5.c     | 2 +-
 libavcodec/mpeg4audio.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/indeo5.c b/libavcodec/indeo5.c
index 7b9da53df4..a7ab95a45c 100644
--- a/libavcodec/indeo5.c
+++ b/libavcodec/indeo5.c
@@ -264,7 +264,7 @@ static int decode_gop_header(IVI45DecContext *ctx, AVCodecContext *avctx)
         }
 
         if (get_bits1(&ctx->gb))
-            skip_bits_long(&ctx->gb, 24); /* skip transparency fill color */
+            skip_bits(&ctx->gb, 24); /* skip transparency fill color */
     }
 
     align_get_bits(&ctx->gb);
diff --git a/libavcodec/mpeg4audio.c b/libavcodec/mpeg4audio.c
index 2d9fe35f69..0d83fb8d25 100644
--- a/libavcodec/mpeg4audio.c
+++ b/libavcodec/mpeg4audio.c
@@ -119,7 +119,7 @@ int ff_mpeg4audio_get_config_gb(MPEG4AudioConfig *c, GetBitContext *gb,
     if (c->object_type == AOT_ALS) {
         skip_bits(gb, 5);
         if (show_bits(gb, 24) != MKBETAG('\0','A','L','S'))
-            skip_bits_long(gb, 24);
+            skip_bits(gb, 24);
 
         specific_config_bitindex = get_bits_count(gb);
 
-- 
2.23.0



More information about the ffmpeg-devel mailing list