mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-19 05:55:07 +00:00
sws: In case of an invalid scaler algorithm, show the invalid value.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4f11bed7a1
commit
0421b6dc7a
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user