huffyuvdec: remove superfluous check
authorChristophe Gisquet <christophe.gisquet@gmail.com>
Wed, 4 Jun 2014 20:48:58 +0000 (20:48 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 4 Jun 2014 23:47:07 +0000 (01:47 +0200)
commit6848325acb80bb9a33d154b787db13c9d53b5a63
tree89164d31c4533459eed63d052a3ca3375ebab474
parenta37020402a4c0c1f375bb7323ed5f79c2c75c538
huffyuvdec: remove superfluous check

An invalid entry already has the property of having a negative number
of bits, so remove the check on the reserved value, and rearrange the
code as a consequence.

346800 decicycles in 422, 262079 runs, 65 skips
168197 decicycles in gray, 262077 runs, 67 skips
Overall time: 7.878s

319076 decicycles in 422, 262096 runs, 48 skips
159875 decicycles in gray, 262057 runs, 87 skips
Overall time: 7.394s

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/huffyuvdec.c