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

Clément Bœsch ubitux at gmail.com
Sun Mar 24 19:50:21 CET 2013


On Sun, Mar 24, 2013 at 01:48:32PM +0100, Stefano Sabatini wrote:
> 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);
>      }

LGTM

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130324/55b4e6e1/attachment.asc>


More information about the ffmpeg-devel mailing list