Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2014-06-15 17:13:16 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-06-15 19:43:47 +0400
commit29f427c2397befc369a45999f24fc34d848510ea (patch)
treed72c2f07b58d2e1522983ef563a3420a35026ec8 /libavcodec
parenteb6f6f25dc9fb3e3694eb4c68570b4bfca341179 (diff)
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: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/huffyuvdec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/huffyuvdec.c b/libavcodec/huffyuvdec.c
index ca0e363a16..6691149089 100644
--- a/libavcodec/huffyuvdec.c
+++ b/libavcodec/huffyuvdec.c
@@ -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++;
}
}