ffmpeg | branch: master | Limin Wang <[email protected]> | 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 <[email protected]> Signed-off-by: Limin Wang <[email protected]> > 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; _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
