ffmpeg | branch: master | Andreas Rheinhardt <[email protected]> | 
Wed Dec  9 03:04:59 2020 +0100| [ebbdb928e88e160fddedf6eb182503bfefadb37d] | 
committer: Andreas Rheinhardt

avcodec/h261dec: Don't use too big max_depth in get_vlc2()

Reviewed-by: Michael Niedermayer <[email protected]>
Signed-off-by: Andreas Rheinhardt <[email protected]>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ebbdb928e88e160fddedf6eb182503bfefadb37d
---

 libavcodec/h261dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/h261dec.c b/libavcodec/h261dec.c
index 8a49e7d894..4373a60df4 100644
--- a/libavcodec/h261dec.c
+++ b/libavcodec/h261dec.c
@@ -431,7 +431,7 @@ static int h261_decode_mb(H261Context *h)
 
     // Read cbp
     if (HAS_CBP(h->mtype))
-        cbp = get_vlc2(&s->gb, h261_cbp_vlc.table, H261_CBP_VLC_BITS, 2) + 1;
+        cbp = get_vlc2(&s->gb, h261_cbp_vlc.table, H261_CBP_VLC_BITS, 1) + 1;
 
     if (s->mb_intra) {
         s->current_picture.mb_type[xy] = MB_TYPE_INTRA;

_______________________________________________
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".

Reply via email to