From fe5e8de97658029f21a24962b77a007b4b9e860e Mon Sep 17 00:00:00 2001
From: dxfhgwet <noreply@example.com>
Date: Sat, 28 Oct 2017 17:51:18 -0700
Subject: [PATCH] avfilter/zscale: add explanation for error 3074

---
 libavfilter/vf_zscale.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c
index 09fd842fe5..05003dc12a 100644
--- a/libavfilter/vf_zscale.c
+++ b/libavfilter/vf_zscale.c
@@ -319,7 +319,11 @@ static int print_zimg_error(AVFilterContext *ctx)
     char err_msg[1024];
     int err_code = zimg_get_last_error(err_msg, sizeof(err_msg));
 
-    av_log(ctx, AV_LOG_ERROR, "code %d: %s\n", err_code, err_msg);
+    if (err_code == ZIMG_ERROR_NO_COLORSPACE_CONVERSION) {
+        av_log(ctx, AV_LOG_ERROR, "code %d: %s. Try specifying matrix/transfer/primaries.\n";
+    } else {
+        av_log(ctx, AV_LOG_ERROR, "code %d: %s\n", err_code, err_msg);
+    }
 
     return AVERROR_EXTERNAL;
 }
-- 
2.13.2.windows.1

