[FFmpeg-cvslog] sws: disable yuv2rgb warning for planar rgb.
Michael Niedermayer
git at videolan.org
Sat Jan 26 23:23:07 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jan 26 23:05:26 2013 +0100| [6512405ce20379f31e28c49599a46e9aa5647e7d] | committer: Michael Niedermayer
sws: disable yuv2rgb warning for planar rgb.
planar rgb formats do not use the table
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6512405ce20379f31e28c49599a46e9aa5647e7d
---
libswscale/yuv2rgb.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c
index 53b69d0..e343d05 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;
More information about the ffmpeg-cvslog
mailing list