From 0421b6dc7a1463b9263b9d63533dd7c5be8ffa97 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 20 Jan 2012 20:44:41 +0100 Subject: [PATCH] sws: In case of an invalid scaler algorithm, show the invalid value. Signed-off-by: Michael Niedermayer --- libswscale/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/utils.c b/libswscale/utils.c index 46ebb7f647..3ddc15d50c 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -818,7 +818,7 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter) |SWS_SPLINE |SWS_BICUBLIN); if(!i || (i & (i-1))) { - av_log(c, AV_LOG_ERROR, "Exactly one scaler algorithm must be chosen\n"); + av_log(c, AV_LOG_ERROR, "Exactly one scaler algorithm must be chosen, got %X\n", i); return AVERROR(EINVAL); } /* sanity check */