summaryrefslogtreecommitdiff
path: root/libavcodec/h263dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-07-01 02:51:10 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-07-01 03:04:46 +0200
commit9251942ca728e7807a2a95306415b27b36a8b8e7 (patch)
tree1d65d4646f8d2e057739734d73374052ab822399 /libavcodec/h263dec.c
parent315f0e3fd8dcbd1362276b7407dad2e97cccc4b7 (diff)
Fix mpeg4 padding bug detection with more than 128bit trash and slices.
Fixes ticket302 The second hunk is from anatoly Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r--libavcodec/h263dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index f079557759..7b42046843 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -269,7 +269,7 @@ static int decode_slice(MpegEncContext *s){
if( s->codec_id==CODEC_ID_MPEG4
&& (s->workaround_bugs&FF_BUG_AUTODETECT)
&& get_bits_left(&s->gb) >=0
- && get_bits_left(&s->gb) < 48
+ && get_bits_left(&s->gb) < 137
// && !s->resync_marker
&& !s->data_partitioning){