Revision 64e3e661

View differences:

libavcodec/imgresample.c
531 531

  
532 532
    if ((srcH != dstH) || (srcW != dstW)) {
533 533
        if ((srcFormat != PIX_FMT_YUV420P) || (dstFormat != PIX_FMT_YUV420P)) {
534
            av_log(NULL, AV_LOG_INFO, "PIX_FMT_YUV420P will be used as an intermediate format for rescaling\n");
534
            av_log(ctx, AV_LOG_INFO, "PIX_FMT_YUV420P will be used as an intermediate format for rescaling\n");
535 535
        }
536 536
        ctx->resampling_ctx = img_resample_init(dstW, dstH, srcW, srcH);
537 537
    } else {
......
634 634
                            &src_pict, ctx->src_pix_fmt,
635 635
                            ctx->resampling_ctx->iwidth, ctx->resampling_ctx->iheight) < 0) {
636 636

  
637
                av_log(NULL, AV_LOG_ERROR, "pixel format conversion not handled\n");
637
                av_log(ctx, AV_LOG_ERROR, "pixel format conversion not handled\n");
638 638
                res = -1;
639 639
                goto the_end;
640 640
            }
......
673 673
                        resampled_picture, current_pix_fmt,
674 674
                        ctx->resampling_ctx->owidth, ctx->resampling_ctx->oheight) < 0) {
675 675

  
676
            av_log(NULL, AV_LOG_ERROR, "pixel format conversion not handled\n");
676
            av_log(ctx, AV_LOG_ERROR, "pixel format conversion not handled\n");
677 677

  
678 678
            res = -1;
679 679
            goto the_end;

Also available in: Unified diff