aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/yuv2rgb.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-26 23:05:26 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-26 23:09:58 +0100
commit6512405ce20379f31e28c49599a46e9aa5647e7d (patch)
tree936d55229801a24c6ba41fe5e7666b2d0a970c1a /libswscale/yuv2rgb.c
parentf0d3a031150fdb95162a2689d80d19c774a5e88f (diff)
downloadffmpeg-6512405ce20379f31e28c49599a46e9aa5647e7d.tar.gz
sws: disable yuv2rgb warning for planar rgb.
planar rgb formats do not use the table Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/yuv2rgb.c')
-rw-r--r--libswscale/yuv2rgb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c
index 53b69d0f73..e343d05d79 100644
--- a/libswscale/yuv2rgb.c
+++ b/libswscale/yuv2rgb.c
@@ -919,7 +919,8 @@ av_cold int ff_yuv2rgb_c_init_tables(SwsContext *c, const int inv_table[4],
break;
default:
c->yuvTable = NULL;
- av_log(c, AV_LOG_ERROR, "%ibpp not supported by yuv2rgb\n", bpp);
+ if(!isPlanar(c->dstFormat) || bpp<=24)
+ av_log(c, AV_LOG_ERROR, "%ibpp not supported by yuv2rgb\n", bpp);
return -1;
}
return 0;