mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
swscale/output: use isSemiPlanarYUV for NV12/21/24/42 case
This commit is contained in:
parent
f8e284be69
commit
cb3a6cc082
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user