ff_video_decoder: Fixed mpeg2 parsing
authorPetri Hintukainen <phintuka@users.sourceforge.net>
Wed, 30 May 2012 10:19:38 +0300
changeset 12141a611988a4401
parent 12139 a69edd41d354
child 12142 6bcd171cf5ab
child 12143 7ee936485722
ff_video_decoder: Fixed mpeg2 parsing
Fixes following errors from ffmpeg:
[mpeg1video @ 0x9ba7f80] ignoring SEQ_START_CODE after 101
[mpeg1video @ 0x9ba7f80] ignoring seq ext after 101
[mpeg1video @ 0x9ba7f80] ignoring GOP_START_CODE after 101
[mpeg1video @ 0x9ba7f80] invalid cbp at 41 0
[mpeg1video @ 0x9ba7f80] concealing 405 DC, 405 AC, 405 MV errors
src/combined/ffmpeg/ff_mpeg_parser.c
     1.1 --- a/src/combined/ffmpeg/ff_mpeg_parser.c	Tue May 29 10:27:24 2012 +0300
     1.2 +++ b/src/combined/ffmpeg/ff_mpeg_parser.c	Wed May 30 10:19:38 2012 +0300
     1.3 @@ -134,7 +134,7 @@
     1.4      }
     1.5    }
     1.6  
     1.7 -  is_frame_done = parser->in_slice && ((!next_code)  || (next_code == 0xb7));
     1.8 +  is_frame_done = parser->in_slice && ((!next_code)  || (next_code >= 0xb0));
     1.9  
    1.10    if (is_frame_done)
    1.11      parser->in_slice = 0;