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

mpeg12enc: 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 a1684cf8
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,8 @@ static void init_uni_ac_vlc(RLTable *rl, uint8_t *uni_ac_vlc_len){
for(i=0; i<128; i++){
int level= i-64;
int run;
if (!level)
continue;
for(run=0; run<64; run++){
int len, bits, code;
......
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