Commit 010c00bc authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Ensure that exactly one scaler algo is used.

Originally committed as revision 27317 to svn://
parent fbbea48e
......@@ -2014,6 +2014,23 @@ SwsContext *sws_getContext(int srcW, int srcH, int srcFormat, int dstW, int dstH
return NULL;
i= flags & ( SWS_POINT
if(!i || (i & (i-1)))
av_log(NULL, AV_LOG_ERROR, "swScaler: Exactly one scaler algorithm must be choosen\n");
return NULL;
/* sanity check */
if (srcW<4 || srcH<1 || dstW<8 || dstH<1) //FIXME check if these are enough and try to lowwer them after fixing the relevant parts of the code
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment