Commit 0d632b35 authored by Christophe Gisquet's avatar Christophe Gisquet Committed by Michael Niedermayer

huffyuvdec: remove superfluous check in BGR code

Before: 154861 decicycles
After:  152912 decicycles
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6848325a
...@@ -729,10 +729,10 @@ static av_always_inline void decode_bgr_1(HYuvContext *s, int count, ...@@ -729,10 +729,10 @@ static av_always_inline void decode_bgr_1(HYuvContext *s, int count,
UPDATE_CACHE(re, &s->gb); UPDATE_CACHE(re, &s->gb);
index = SHOW_UBITS(re, &s->gb, VLC_BITS); index = SHOW_UBITS(re, &s->gb, VLC_BITS);
code = s->vlc[4].table[index][0];
n = s->vlc[4].table[index][1]; n = s->vlc[4].table[index][1];
if (code != -1) { if (n>0) {
code = s->vlc[4].table[index][0];
*(uint32_t*)&s->temp[0][4 * i] = s->pix_bgr_map[code]; *(uint32_t*)&s->temp[0][4 * i] = s->pix_bgr_map[code];
LAST_SKIP_BITS(re, &s->gb, n); LAST_SKIP_BITS(re, &s->gb, n);
} else { } else {
......
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