Commit 7e28db93 authored by benoit's avatar benoit

More explicit unsupported pixel format error messages.

Patch by Stefano Sabatini: stefano sabatini (minus) lala % poste it


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@25999 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 53e961bb
...@@ -2062,12 +2062,12 @@ SwsContext *sws_getContext(int srcW, int srcH, int srcFormat, int dstW, int dstH ...@@ -2062,12 +2062,12 @@ SwsContext *sws_getContext(int srcW, int srcH, int srcFormat, int dstW, int dstH
if (!isSupportedIn(srcFormat)) if (!isSupportedIn(srcFormat))
{ {
av_log(NULL, AV_LOG_ERROR, "swScaler: %s is not supported as input format\n", sws_format_name(srcFormat)); av_log(NULL, AV_LOG_ERROR, "swScaler: %s is not supported as input pixel format\n", sws_format_name(srcFormat));
return NULL; return NULL;
} }
if (!isSupportedOut(dstFormat)) if (!isSupportedOut(dstFormat))
{ {
av_log(NULL, AV_LOG_ERROR, "swScaler: %s is not supported as output format\n", sws_format_name(dstFormat)); av_log(NULL, AV_LOG_ERROR, "swScaler: %s is not supported as output pixel format\n", sws_format_name(dstFormat));
return NULL; return NULL;
} }
......
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