diff options
author | rcombs <rcombs@rcombs.me> | 2021-12-23 03:52:11 -0600 |
---|---|---|
committer | rcombs <rcombs@rcombs.me> | 2022-01-04 19:39:22 -0600 |
commit | cb3a6cc08275b0251edfc346f8d7afc595555e52 (patch) | |
tree | 0b67a3e79fbac25a97b39342cb003aff4e9367b2 /libswscale/output.c | |
parent | f8e284be69d6eae480c6d7291763b840959b7bf1 (diff) | |
download | ffmpeg-cb3a6cc08275b0251edfc346f8d7afc595555e52.tar.gz |
swscale/output: use isSemiPlanarYUV for NV12/21/24/42 case
Diffstat (limited to 'libswscale/output.c')
-rw-r--r-- | libswscale/output.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libswscale/output.c b/libswscale/output.c index 7cedb145aa..90f5efa16e 100644 --- a/libswscale/output.c +++ b/libswscale/output.c @@ -2632,8 +2632,7 @@ av_cold void ff_sws_init_output_funcs(SwsContext *c, } else { *yuv2plane1 = yuv2plane1_8_c; *yuv2planeX = yuv2planeX_8_c; - if (dstFormat == AV_PIX_FMT_NV12 || dstFormat == AV_PIX_FMT_NV21 || - dstFormat == AV_PIX_FMT_NV24 || dstFormat == AV_PIX_FMT_NV42) + if (isSemiPlanarYUV(dstFormat)) *yuv2nv12cX = yuv2nv12cX_c; } |