Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-12 12:09:27 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-16 01:39:01 +0300
commit4f3edcdcbc6553b5e717f03cd903355b3f6d276e (patch)
tree6bc49e0cdfd6ad9b45d41f52ed7de39fcfa32588 /libavcodec/asvdec.c
parent2a8edb1ad3d91761a1557687c330d11967d18a34 (diff)
avcodec/asvdec: Use init_get_bits8()
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/asvdec.c')
-rw-r--r--libavcodec/asvdec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/asvdec.c b/libavcodec/asvdec.c
index a21e4277b3..6198188fc5 100644
--- a/libavcodec/asvdec.c
+++ b/libavcodec/asvdec.c
@@ -235,7 +235,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
a->bitstream_buffer[i] = ff_reverse[buf[i]];
}
- init_get_bits(&a->gb, a->bitstream_buffer, buf_size * 8);
+ ret = init_get_bits8(&a->gb, a->bitstream_buffer, buf_size);
+ if (ret < 0)
+ return ret;
for (mb_y = 0; mb_y < a->mb_height2; mb_y++) {
for (mb_x = 0; mb_x < a->mb_width2; mb_x++) {