[FFmpeg-cvslog] swscale/output: use isSemiPlanarYUV for 16-bit case
rcombs
git at videolan.org
Wed Jan 5 03:41:13 EET 2022
ffmpeg | branch: master | rcombs <rcombs at rcombs.me> | Thu Dec 23 03:28:21 2021 -0600| [cf9e8cb52f413ec9cf82b8934db1d5f9c7fbb975] | committer: rcombs
swscale/output: use isSemiPlanarYUV for 16-bit case
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cf9e8cb52f413ec9cf82b8934db1d5f9c7fbb975
---
libswscale/output.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/libswscale/output.c b/libswscale/output.c
index e7cea49096..e43eb7835e 100644
--- a/libswscale/output.c
+++ b/libswscale/output.c
@@ -2606,9 +2606,7 @@ av_cold void ff_sws_init_output_funcs(SwsContext *c,
} else if (is16BPS(dstFormat)) {
*yuv2planeX = isBE(dstFormat) ? yuv2planeX_16BE_c : yuv2planeX_16LE_c;
*yuv2plane1 = isBE(dstFormat) ? yuv2plane1_16BE_c : yuv2plane1_16LE_c;
- if (dstFormat == AV_PIX_FMT_P016LE || dstFormat == AV_PIX_FMT_P016BE ||
- dstFormat == AV_PIX_FMT_P216LE || dstFormat == AV_PIX_FMT_P216BE ||
- dstFormat == AV_PIX_FMT_P416LE || dstFormat == AV_PIX_FMT_P416BE) {
+ if (isSemiPlanarYUV(dstFormat)) {
*yuv2nv12cX = isBE(dstFormat) ? yuv2nv12cX_16BE_c : yuv2nv12cX_16LE_c;
}
} else if (isNBPS(dstFormat)) {
More information about the ffmpeg-cvslog
mailing list