diff options
author | Niklas Haas <git@haasn.dev> | 2025-08-11 15:53:01 +0200 |
---|---|---|
committer | Niklas Haas <ffmpeg@haasn.dev> | 2025-08-12 09:01:39 +0000 |
commit | 663a37f7f9d360c40a21cf428df7a55de11a96ed (patch) | |
tree | f69d74dd53d5dfe0c93b4ff88de35153b18629ab | |
parent | a45113c28ab57891181c2c79821513e2b6742b4d (diff) | |
download | ffmpeg-663a37f7f9d360c40a21cf428df7a55de11a96ed.tar.gz |
avfilter/vf_libvmaf: use AVFilterContext for logging
-rw-r--r-- | libavfilter/vf_libvmaf.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libavfilter/vf_libvmaf.c b/libavfilter/vf_libvmaf.c index 10d5b7f59b..3ab67d3dba 100644 --- a/libavfilter/vf_libvmaf.c +++ b/libavfilter/vf_libvmaf.c @@ -149,20 +149,20 @@ static int do_vmaf(FFFrameSync *fs) err = copy_picture_data(ref, &pic_ref, s->bpc); if (err) { - av_log(s, AV_LOG_ERROR, "problem during vmaf_picture_alloc.\n"); + av_log(ctx, AV_LOG_ERROR, "problem during vmaf_picture_alloc.\n"); return AVERROR(ENOMEM); } err = copy_picture_data(dist, &pic_dist, s->bpc); if (err) { - av_log(s, AV_LOG_ERROR, "problem during vmaf_picture_alloc.\n"); + av_log(ctx, AV_LOG_ERROR, "problem during vmaf_picture_alloc.\n"); vmaf_picture_unref(&pic_ref); return AVERROR(ENOMEM); } err = vmaf_read_pictures(s->vmaf, &pic_ref, &pic_dist, s->frame_cnt++); if (err) { - av_log(s, AV_LOG_ERROR, "problem during vmaf_read_pictures.\n"); + av_log(ctx, AV_LOG_ERROR, "problem during vmaf_read_pictures.\n"); return AVERROR(EINVAL); } @@ -680,7 +680,7 @@ static int config_props_cuda(AVFilterLink *outlink) }; if (!format_is_supported(frames_ctx->sw_format)) { - av_log(s, AV_LOG_ERROR, + av_log(ctx, AV_LOG_ERROR, "Unsupported input format: %s\n", desc->name); return AVERROR(EINVAL); } @@ -776,20 +776,20 @@ static int do_vmaf_cuda(FFFrameSync* fs) err = copy_picture_data_cuda(s->vmaf, device_hwctx, ref, &pic_ref, frames_ctx->sw_format); if (err) { - av_log(s, AV_LOG_ERROR, "problem during copy_picture_data_cuda.\n"); + av_log(ctx, AV_LOG_ERROR, "problem during copy_picture_data_cuda.\n"); return AVERROR(ENOMEM); } err = copy_picture_data_cuda(s->vmaf, device_hwctx, dist, &pic_dist, frames_ctx->sw_format); if (err) { - av_log(s, AV_LOG_ERROR, "problem during copy_picture_data_cuda.\n"); + av_log(ctx, AV_LOG_ERROR, "problem during copy_picture_data_cuda.\n"); return AVERROR(ENOMEM); } err = vmaf_read_pictures(s->vmaf, &pic_ref, &pic_dist, s->frame_cnt++); if (err) { - av_log(s, AV_LOG_ERROR, "problem during vmaf_read_pictures.\n"); + av_log(ctx, AV_LOG_ERROR, "problem during vmaf_read_pictures.\n"); return AVERROR(EINVAL); } |