Message ID | 20230401174737.85192-2-chemag@gmail.com |
---|---|
State | Accepted |
Commit | a53545a3741f99df4fe07655538e884f6397c08e |
Headers | show |
Series | [FFmpeg-devel,1/3] lavfi/vf_psnr: add warning when color ranges differ | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavfilter/vf_ssim.c b/libavfilter/vf_ssim.c index 1933b9b82d..53eb72fe6a 100644 --- a/libavfilter/vf_ssim.c +++ b/libavfilter/vf_ssim.c @@ -358,6 +358,13 @@ static int do_ssim(FFFrameSync *fs) td.planeheight[n] = s->planeheight[n]; } + if (master->color_range != ref->color_range) { + av_log(ctx, AV_LOG_WARNING, "master and reference " + "frames use different color ranges (%s != %s)\n", + av_color_range_name(master->color_range), + av_color_range_name(ref->color_range)); + } + ff_filter_execute(ctx, s->ssim_plane, &td, NULL, FFMIN((s->planeheight[1] + 3) >> 2, s->nb_threads));