diff options
author | rcombs <rcombs@rcombs.me> | 2021-12-23 03:28:21 -0600 |
---|---|---|
committer | rcombs <rcombs@rcombs.me> | 2022-01-04 19:39:22 -0600 |
commit | cf9e8cb52f413ec9cf82b8934db1d5f9c7fbb975 (patch) | |
tree | 38f0f1e67be73f71a1888faa8597b547021d7084 /libswscale | |
parent | e5d83463c8745c1b9d8ce83d00a5856a4dd19ceb (diff) | |
download | ffmpeg-cf9e8cb52f413ec9cf82b8934db1d5f9c7fbb975.tar.gz |
swscale/output: use isSemiPlanarYUV for 16-bit case
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/output.c | 4 |
1 files changed, 1 insertions, 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)) { |