Skip to content
Snippets Groups Projects
Commit a1684cf8 authored by Alex Converse's avatar Alex Converse
Browse files

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.
parent ce145690
No related branches found
No related tags found
No related merge requests found
...@@ -266,7 +266,7 @@ av_cold void ff_msmpeg4_encode_init(MpegEncContext *s) ...@@ -266,7 +266,7 @@ av_cold void ff_msmpeg4_encode_init(MpegEncContext *s)
for(i=0; i<NB_RL_TABLES; i++){ for(i=0; i<NB_RL_TABLES; i++){
int level; int level;
for(level=0; level<=MAX_LEVEL; level++){ for (level = 1; level <= MAX_LEVEL; level++) {
int run; int run;
for(run=0; run<=MAX_RUN; run++){ for(run=0; run<=MAX_RUN; run++){
int last; int last;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment