[FFmpeg-cvslog] swscale/output: use isSemiPlanarYUV for NV12/21/24/42 case
rcombs
git at videolan.org
Wed Jan 5 03:41:19 EET 2022
ffmpeg | branch: master | rcombs <rcombs at rcombs.me> | Thu Dec 23 03:52:11 2021 -0600| [cb3a6cc08275b0251edfc346f8d7afc595555e52] | committer: rcombs
swscale/output: use isSemiPlanarYUV for NV12/21/24/42 case
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cb3a6cc08275b0251edfc346f8d7afc595555e52
---
libswscale/output.c | 3 +--
1 file changed, 1 insertion(+), 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;
}
More information about the ffmpeg-cvslog
mailing list