[FFmpeg-cvslog] sws: In case of an invalid scaler algorithm, show the invalid value.
Michael Niedermayer
git at videolan.org
Sun Jan 22 07:05:31 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jan 20 20:44:41 2012 +0100| [0421b6dc7a1463b9263b9d63533dd7c5be8ffa97] | committer: Michael Niedermayer
sws: In case of an invalid scaler algorithm, show the invalid value.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0421b6dc7a1463b9263b9d63533dd7c5be8ffa97
---
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 */
More information about the ffmpeg-cvslog
mailing list