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_SPLINE
|
||||||
|SWS_BICUBLIN);
|
|SWS_BICUBLIN);
|
||||||
if(!i || (i & (i-1))) {
|
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);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
/* sanity check */
|
/* sanity check */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user