Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: r19351_theora_decode_tables_limit127.patch

Issue 164120: Add patches for block-level quant in theora, -O2 on build, and statically link pthread on Windows (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « r19350_init_loop_filter_127fix.patch ('k') | r19355_invalid_huffman_table.patch » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Name: svn:eol-style
+ LF
OLDNEW
(Empty)
1 commit cce6158fd963a659b5a2eba4deedacba4e55a540
2 Author: reimar <reimar@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
3 Date: Sun Jul 5 18:27:39 2009 +0000
4
5 Ensure that the filter limit values do not exceed the maximum allowed value of 127.
6
7
8 git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19351 9553f0bf-9b14- 0410-a0b8-cfaf0461ba5b
9
10 diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
11 index 66ac2f9..ad32cc9 100644
12 --- a/libavcodec/vp3.c
13 +++ b/libavcodec/vp3.c
14 @@ -2171,8 +2171,13 @@ static int theora_decode_tables(AVCodecContext *avctx, Ge tBitContext *gb)
15 if (s->theora >= 0x030200) {
16 n = get_bits(gb, 3);
17 /* loop filter limit values table */
18 - for (i = 0; i < 64; i++)
19 + for (i = 0; i < 64; i++) {
20 s->filter_limit_values[i] = get_bits(gb, n);
21 + if (s->filter_limit_values[i] > 127) {
22 + av_log(avctx, AV_LOG_ERROR, "filter limit value too large (%i > 127), clamping\n", s->filter_limit_values[i]);
23 + s->filter_limit_values[i] = 127;
24 + }
25 + }
26 }
27
28 if (s->theora >= 0x030200)
OLDNEW
« no previous file with comments | « r19350_init_loop_filter_127fix.patch ('k') | r19355_invalid_huffman_table.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698