diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-01-24 19:28:39 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-24 21:09:16 +0400 |
commit | 746350ea0f7bde1e9fd23270e104af8897197293 (patch) | |
tree | 6ced185eb13e97b8f9e8f3dc33dc3a18883a5bcb /libavcodec/mpeg12dec.c | |
parent | a0e9dfb5ae5ed45090065612744e4bec10f033bf (diff) |
avcodec/mpeg12dec: Make mpeg2_fast_decode_block_intra() more robust by breaking out on invalid vlcs
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpeg12dec.c')
-rw-r--r-- | libavcodec/mpeg12dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c index 08e6bff56c..91346bf52b 100644 --- a/libavcodec/mpeg12dec.c +++ b/libavcodec/mpeg12dec.c @@ -613,7 +613,7 @@ static inline int mpeg2_fast_decode_block_intra(MpegEncContext *s, int16_t *bloc UPDATE_CACHE(re, &s->gb); GET_RL_VLC(level, run, re, &s->gb, rl->rl_vlc[0], TEX_VLC_BITS, 2, 0); - if (level == 127) { + if (level >= 64) { break; } else if (level != 0) { scantable += run; |