[FFmpeg-cvslog] r25875 - trunk/libavcodec/h263dec.c
michael
subversion
Sat Dec 4 06:44:19 CET 2010
Author: michael
Date: Sat Dec 4 06:44:18 2010
New Revision: 25875
Log:
Detect incorrect padding with wrong stuffing codes used by NEC N-02B.
I dont know if this is the best way to handle it. But it fixes http://kuwatan.jp/temp/n-02b.3gp
Modified:
trunk/libavcodec/h263dec.c
Modified: trunk/libavcodec/h263dec.c
==============================================================================
--- trunk/libavcodec/h263dec.c Sat Dec 4 06:23:44 2010 (r25874)
+++ trunk/libavcodec/h263dec.c Sat Dec 4 06:44:18 2010 (r25875)
@@ -261,6 +261,13 @@ static int decode_slice(MpegEncContext *
assert(s->mb_x==0 && s->mb_y==s->mb_height);
+ if(s->codec_id==CODEC_ID_MPEG4
+ && (s->workaround_bugs&FF_BUG_AUTODETECT)
+ && get_bits_left(&s->gb) >= 48
+ && show_bits(&s->gb, 24)==0x4010
+ && !s->data_partitioning)
+ s->padding_bug_score+=32;
+
/* try to detect the padding bug */
if( s->codec_id==CODEC_ID_MPEG4
&& (s->workaround_bugs&FF_BUG_AUTODETECT)
More information about the ffmpeg-cvslog
mailing list