aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJason Garrett-Glaser <darkshikari@gmail.com>2010-10-26 07:37:51 +0000
committerJason Garrett-Glaser <darkshikari@gmail.com>2010-10-26 07:37:51 +0000
commit9d777508fa3b02aafdf365ee5398d2a0f4bf30ed (patch)
tree7f730fec67bedc3a78a05f7f49389e2e6a942b0b /libavcodec
parent10f691581409eb761280d467a7c76ebe215455c2 (diff)
downloadffmpeg-9d777508fa3b02aafdf365ee5398d2a0f4bf30ed.tar.gz
Remove dead code in theora_decode_tables
Reading 7 bits as an unsigned int can't result in a value exceeding 127. Accordingly, remove error message (as it'll never be reached). Originally committed as revision 25575 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vp3.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index 36cfea2b43..3883512caa 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -2052,15 +2052,9 @@ static int theora_decode_tables(AVCodecContext *avctx, GetBitContext *gb)
if (s->theora >= 0x030200) {
n = get_bits(gb, 3);
/* loop filter limit values table */
- if (n) {
- for (i = 0; i < 64; i++) {
+ if (n)
+ for (i = 0; i < 64; i++)
s->filter_limit_values[i] = get_bits(gb, n);
- if (s->filter_limit_values[i] > 127) {
- av_log(avctx, AV_LOG_ERROR, "filter limit value too large (%i > 127), clamping\n", s->filter_limit_values[i]);
- s->filter_limit_values[i] = 127;
- }
- }
- }
}
if (s->theora >= 0x030200)