mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
read loop filter limit values from Theora header, courtesy of Matthieu
Castet (castet.matthieu -at- free.fr) Originally committed as revision 4304 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f39e56a84b
commit
9c7154c7ae
@ -3420,9 +3420,9 @@ static int theora_decode_tables(AVCodecContext *avctx, GetBitContext gb)
|
|||||||
|
|
||||||
if (s->theora >= 0x030200) {
|
if (s->theora >= 0x030200) {
|
||||||
n = get_bits(&gb, 3);
|
n = get_bits(&gb, 3);
|
||||||
/* loop filter table */
|
/* loop filter limit values table */
|
||||||
for (i = 0; i < 64; i++)
|
for (i = 0; i < 64; i++)
|
||||||
skip_bits(&gb, n);
|
s->filter_limit_values[i] = get_bits(&gb, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s->theora >= 0x030200)
|
if (s->theora >= 0x030200)
|
||||||
@ -3497,10 +3497,6 @@ static int theora_decode_tables(AVCodecContext *avctx, GetBitContext gb)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* XXX FIXME: these limit values need to come from the Theora header */
|
|
||||||
for (i = 0; i < 64; i++)
|
|
||||||
s->filter_limit_values[i] = vp31_filter_limit_values[i];
|
|
||||||
|
|
||||||
s->theora_tables = 1;
|
s->theora_tables = 1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user