Commit 29f427c2 authored by Christophe Gisquet's avatar Christophe Gisquet Committed by Michael Niedermayer

huffyuvdec: remove somewhat deprecated code

The old code was reserving the 0xFFFF entry to represent an inexisting
entry/codeword. These entries are now detected through their length
being <= 0. As this entry is often used for the residuals (-1,-1), which
should be among the most frequent, it is particularly important to not
reserve it.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent eb6f6f25
......@@ -138,7 +138,6 @@ static int generate_joint_tables(HYuvContext *s)
len[i] = len0 + len1;
bits[i] = (s->bits[p0][y] << len1) + s->bits[p][u];
symbols[i] = (y << 8) + (u & 0xFF);
if(symbols[i] != 0xffff) // reserved to mean "invalid"
i++;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment