[FFmpeg-devel] [PATCH] lavfi/colormatrix: reword error message in init

Stefano Sabatini stefasab at gmail.com
Sun Mar 24 13:48:32 CET 2013


Change:
"source and destination color space are identical"

which is a true fact, but doesn't tell nothing about what's wrong, to:
"Source and destination color space must not be identical"

which tells more explicitly what's the problem.
---
 libavfilter/vf_colormatrix.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_colormatrix.c b/libavfilter/vf_colormatrix.c
index db0125d..2051abe 100644
--- a/libavfilter/vf_colormatrix.c
+++ b/libavfilter/vf_colormatrix.c
@@ -170,7 +170,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
     }
 
     if (color->source == color->dest) {
-        av_log(ctx, AV_LOG_ERROR, "source and destination color space are identical\n");
+        av_log(ctx, AV_LOG_ERROR, "Source and destination color space must not be identical\n");
         return AVERROR(EINVAL);
     }
 
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list