| OLD | NEW |
| 1 diff -rpu -N orig/libavcodec/vp3.c ffmpeg-mt/libavcodec/vp3.c | 1 diff -rpu -N orig/libavcodec/vp3.c ffmpeg-mt/libavcodec/vp3.c |
| 2 --- orig/libavcodec/vp3.c» 2010-06-17 09:39:47.729307500 -0700 | 2 --- orig/libavcodec/vp3.c» 2010-06-24 19:19:47.029121600 -0700 |
| 3 +++ ffmpeg-mt/libavcodec/vp3.c» 2010-06-17 09:39:49.090443600 -0700 | 3 +++ ffmpeg-mt/libavcodec/vp3.c» 2010-06-24 19:19:48.932346000 -0700 |
| 4 @@ -868,6 +868,11 @@ static int unpack_vlcs(Vp3DecodeContext | 4 @@ -868,6 +868,11 @@ static int unpack_vlcs(Vp3DecodeContext |
| 5 int num_coeffs = s->num_coded_frags[plane][coeff_index]; | 5 int num_coeffs = s->num_coded_frags[plane][coeff_index]; |
| 6 int16_t *dct_tokens = s->dct_tokens[plane][coeff_index]; | 6 int16_t *dct_tokens = s->dct_tokens[plane][coeff_index]; |
| 7 | 7 |
| 8 +#ifdef ALT_BITSTREAM_READER | 8 +#ifdef ALT_BITSTREAM_READER |
| 9 + if (gb->buffer_exhausted && gb->index > gb->size_in_bits) | 9 + if (gb->buffer_exhausted && gb->index > gb->size_in_bits) |
| 10 + return 0; | 10 + return 0; |
| 11 +#endif | 11 +#endif |
| 12 + | 12 + |
| 13 /* local references to structure members to avoid repeated deferences */ | 13 /* local references to structure members to avoid repeated deferences */ |
| (...skipping 20 matching lines...) Expand all Loading... |
| 34 if (s->theora && get_bits1(&gb)) | 34 if (s->theora && get_bits1(&gb)) |
| 35 { | 35 { |
| 36 @@ -2285,6 +2296,7 @@ static av_cold int theora_decode_init(AV | 36 @@ -2285,6 +2296,7 @@ static av_cold int theora_decode_init(AV |
| 37 | 37 |
| 38 for(i=0;i<3;i++) { | 38 for(i=0;i<3;i++) { |
| 39 init_get_bits(&gb, header_start[i], header_len[i] * 8); | 39 init_get_bits(&gb, header_start[i], header_len[i] * 8); |
| 40 + gb.buffer_enforcing = 1; | 40 + gb.buffer_enforcing = 1; |
| 41 | 41 |
| 42 ptype = get_bits(&gb, 8); | 42 ptype = get_bits(&gb, 8); |
| 43 | 43 |
| OLD | NEW |