[FFmpeg-cvslog] huffyuvdec: remove somewhat deprecated code

Christophe Gisquet git at videolan.org
Sun Jun 15 18:01:55 CEST 2014


ffmpeg | branch: master | Christophe Gisquet <christophe.gisquet at gmail.com> | Sun Jun 15 15:13:16 2014 +0200| [29f427c2397befc369a45999f24fc34d848510ea] | committer: 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: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=29f427c2397befc369a45999f24fc34d848510ea
---

 libavcodec/huffyuvdec.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/libavcodec/huffyuvdec.c b/libavcodec/huffyuvdec.c
index ca0e363..6691149 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++;
                 }
             }



More information about the ffmpeg-cvslog mailing list