Revision 88eba670 libavcodec/mpeg12.c

View differences:

libavcodec/mpeg12.c
2306 2306
            break;
2307 2307

  
2308 2308
        case PICTURE_START_CODE:
2309
            if(last_code == 0 || last_code == SLICE_MIN_START_CODE){
2309 2310
            if(mpeg_decode_postinit(avctx) < 0){
2310 2311
                av_log(avctx, AV_LOG_ERROR, "mpeg_decode_postinit() failure\n");
2311 2312
                return -1;
......
2316 2317
                                    buf_ptr, input_size) < 0)
2317 2318
                s2->pict_type=0;
2318 2319
            last_code= PICTURE_START_CODE;
2320
            }else{
2321
                av_log(avctx, AV_LOG_ERROR, "ignoring pic after %X\n", last_code);
2322
            }
2319 2323
            break;
2320 2324
        case EXT_START_CODE:
2321 2325
            init_get_bits(&s2->gb, buf_ptr, input_size*8);
......
2338 2342
                mpeg_decode_picture_display_extension(s);
2339 2343
                break;
2340 2344
            case 0x8:
2345
                if(last_code == PICTURE_START_CODE){
2341 2346
                mpeg_decode_picture_coding_extension(s);
2342
                last_code= PICTURE_START_CODE;
2347
                }else{
2348
                    av_log(avctx, AV_LOG_ERROR, "ignoring pic cod ext after %X\n", last_code);
2349
                }
2343 2350
                break;
2344 2351
            }
2345 2352
            break;

Also available in: Unified diff