Revision bbf266fd

View differences:

libavcodec/mpeg12.c
1352 1352
    MpegEncContext *s = &s1->mpeg_enc_ctx;
1353 1353
    int ref, f_code, vbv_delay;
1354 1354

  
1355
    if(mpeg_decode_postinit(s->avctx) < 0)
1356
       return -2;
1357

  
1358 1355
    init_get_bits(&s->gb, buf, buf_size*8);
1359 1356

  
1360 1357
    ref = get_bits(&s->gb, 10); /* temporal ref */
......
2304 2301
            break;
2305 2302

  
2306 2303
        case PICTURE_START_CODE:
2304
            if(mpeg_decode_postinit(avctx) < 0){
2305
                av_log(avctx, AV_LOG_ERROR, "mpeg_decode_postinit() failure\n");
2306
                return -1;
2307
            }
2308

  
2307 2309
            /* we have a complete image: we try to decompress it */
2308 2310
            if(mpeg1_decode_picture(avctx,
2309 2311
                                    buf_ptr, input_size) < 0)

Also available in: Unified diff