[FFmpeg-devel] [PATCH 2/2] sws: In case of an invalid scaler algorithm, show the invalid value.
Michael Niedermayer
michaelni at gmx.at
Fri Jan 20 20:59:30 CET 2012
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
libswscale/utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libswscale/utils.c b/libswscale/utils.c
index 46ebb7f..3ddc15d 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 */
--
1.7.5.4
More information about the ffmpeg-devel
mailing list