---
libavcodec/eamad.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c
index c5aa6ac..c29d847 100644
--- a/libavcodec/eamad.c
+++ b/libavcodec/eamad.c
@@ -131,6 +131,7 @@ static inline void decode_block_intra(MadContext * t,
DCTELEM * block)
/* now quantify & encode AC coefficients */
for (;;) {
UPDATE_CACHE(re, &s->gb);
+ if ( get_bits_left(&s->gb) < TEX_VLC_BITS ) break;
GET_RL_VLC(level, run, re, &s->gb, rl->rl_vlc[0], TEX_VLC_BITS, 2,
0);
if (level == 127) {
--
1.7.4.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel