diff options
author | Alex Converse <alex.converse@gmail.com> | 2011-11-04 02:57:23 +0400 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2011-11-07 22:48:53 +0400 |
commit | a1684cf82d1aa35de0ae97724477501f92395c2b (patch) | |
tree | e874e6c0fa2ad19e635931b50584fc45c69cf48d /libavcodec/msmpeg4.c | |
parent | ce145690b6a53dd9d5134c6d4a5c6d401bc69514 (diff) |
msmpeg4: Don't set up run-level info for level 0.
run: The number of zero coefficients preceding a non-zero coefficient,
in the scan order. The absolute value of the non-zero coefficient is
called "level".
The run-level code makes illegal reads when trying to set up tables for
nonsense level 0.
Diffstat (limited to 'libavcodec/msmpeg4.c')
-rw-r--r-- | libavcodec/msmpeg4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/msmpeg4.c b/libavcodec/msmpeg4.c index 93191ccf10..84e6249858 100644 --- a/libavcodec/msmpeg4.c +++ b/libavcodec/msmpeg4.c @@ -266,7 +266,7 @@ av_cold void ff_msmpeg4_encode_init(MpegEncContext *s) for(i=0; i<NB_RL_TABLES; i++){ int level; - for(level=0; level<=MAX_LEVEL; level++){ + for (level = 1; level <= MAX_LEVEL; level++) { int run; for(run=0; run<=MAX_RUN; run++){ int last; |