[FFmpeg-cvslog] avcodec/mpeg12dec: Fix usage of init_get_bits() and use init_get_bits8()
Limin Wang
git at videolan.org
Sat Oct 9 16:27:00 EEST 2021
ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Fri Oct 8 22:17:12 2021 +0800| [c0d38beac0c45793228b8d5af19406e63c84a7bd] | committer: Limin Wang
avcodec/mpeg12dec: Fix usage of init_get_bits() and use init_get_bits8()
Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c0d38beac0c45793228b8d5af19406e63c84a7bd
---
libavcodec/mpeg12dec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index e6ada1c748..09b2902bca 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -2265,7 +2265,7 @@ static int mpeg_decode_a53_cc(AVCodecContext *avctx,
int cc_count = 0;
int i, ret;
- init_get_bits(&gb, p + 2, buf_size - 2);
+ init_get_bits8(&gb, p + 2, buf_size - 2);
cc_count = get_bits(&gb, 5);
if (cc_count > 0) {
int old_size = s1->a53_buf_ref ? s1->a53_buf_ref->size : 0;
More information about the ffmpeg-cvslog
mailing list