Revision 0fd0ef79 libavcodec/utils.c

View differences:

libavcodec/utils.c
506 506
    }
507 507
    avctx->frame_number = 0;
508 508
    if(avctx->codec->init){
509
        if(avctx->codec_type == AVMEDIA_TYPE_VIDEO &&
510
           avctx->codec->max_lowres < avctx->lowres){
511
            av_log(avctx, AV_LOG_ERROR, "The maximum value for lowres supported by the decoder is %d\n",
512
                   avctx->codec->max_lowres);
513
            goto free_and_end;
514
        }
515

  
509 516
        ret = avctx->codec->init(avctx);
510 517
        if (ret < 0) {
511 518
            goto free_and_end;

Also available in: Unified diff