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

Side by Side Diff: patches/ugly/09_enforce_vorbis_oob_divzero.patch

Issue 3066011: ffmpeg configured with webm decode only to avoid postproc that pulls in unuse... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 10 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 diff -rpu -N orig/libavcodec/vorbis_dec.c ffmpeg-mt/libavcodec/vorbis_dec.c 1 diff -rpu -N orig/libavcodec/vorbis_dec.c ffmpeg-mt/libavcodec/vorbis_dec.c
2 --- orig/libavcodec/vorbis_dec.c» 2010-07-19 12:53:19.886779500 -0700 2 --- orig/libavcodec/vorbis_dec.c» 2010-07-27 13:08:13.864160800 -0700
3 +++ ffmpeg-mt/libavcodec/vorbis_dec.c» 2010-07-19 12:53:21.727579500 -0700 3 +++ ffmpeg-mt/libavcodec/vorbis_dec.c» 2010-07-27 13:08:16.246399000 -0700
4 @@ -972,6 +972,7 @@ static av_cold int vorbis_decode_init(AV 4 @@ -972,6 +972,7 @@ static av_cold int vorbis_decode_init(AV
5 } 5 }
6 6
7 init_get_bits(gb, header_start[0], header_len[0]*8); 7 init_get_bits(gb, header_start[0], header_len[0]*8);
8 + gb->buffer_enforcing=1; 8 + gb->buffer_enforcing=1;
9 hdr_type = get_bits(gb, 8); 9 hdr_type = get_bits(gb, 8);
10 if (hdr_type != 1) { 10 if (hdr_type != 1) {
11 av_log(avccontext, AV_LOG_ERROR, "First header is not the id header.\n" ); 11 av_log(avccontext, AV_LOG_ERROR, "First header is not the id header.\n" );
12 @@ -984,6 +985,7 @@ static av_cold int vorbis_decode_init(AV 12 @@ -984,6 +985,7 @@ static av_cold int vorbis_decode_init(AV
13 } 13 }
(...skipping 22 matching lines...) Expand all
36 uint_fast32_t inverse_class = ff_inverse[vr->classifications]; 36 uint_fast32_t inverse_class = ff_inverse[vr->classifications];
37 for (j_times_ptns_to_read = 0, j = 0; j < ch_used; ++j) { 37 for (j_times_ptns_to_read = 0, j = 0; j < ch_used; ++j) {
38 @@ -1611,6 +1613,7 @@ static int vorbis_decode_frame(AVCodecCo 38 @@ -1611,6 +1613,7 @@ static int vorbis_decode_frame(AVCodecCo
39 AV_DEBUG("packet length %d \n", buf_size); 39 AV_DEBUG("packet length %d \n", buf_size);
40 40
41 init_get_bits(gb, buf, buf_size*8); 41 init_get_bits(gb, buf, buf_size*8);
42 + gb->buffer_enforcing=1; 42 + gb->buffer_enforcing=1;
43 43
44 len = vorbis_parse_audio_packet(vc); 44 len = vorbis_parse_audio_packet(vc);
45 45
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698