History

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

Fixes issue 2373. Originally committed as revision 25875 to svn://svn.ffmpeg.org/ffmpeg/trunk

Michael Niedermayer committed 15 years ago

Commit df59c9c1 parent 1ef64491 file · +7 −0Browse files

Unified · Split

libavcodec/h263dec.c+7−0
@@ -261,6 +261,13 @@ static int decode_slice(MpegEncContext *s){ · 260 unmodified lines
261261
262262 assert(s->mb_x==0 && s->mb_y==s->mb_height);
263263
264+ if(s->codec_id==CODEC_ID_MPEG4
265+ && (s->workaround_bugs&FF_BUG_AUTODETECT)
266+ && get_bits_left(&s->gb) >= 48
267+ && show_bits(&s->gb, 24)==0x4010
268+ && !s->data_partitioning)
269+ s->padding_bug_score+=32;
270+
264271 /* try to detect the padding bug */
265272 if( s->codec_id==CODEC_ID_MPEG4
266273 && (s->workaround_bugs&FF_BUG_AUTODETECT)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t