Skip to content
Snippets Groups Projects
Commit 248fc454 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf
Browse files

dxa9: swap UV explicitly for YV12

DXA9_YV12 is only used for I420, YV12 and I420_10L. The NV12 to
I420 only has swapped planes when the output is YV12.
parent 372e62c0
No related branches found
No related tags found
1 merge request!4413dxa9: swap UV explicitly for YV12
Pipeline #397229 passed with stages
in 31 minutes and 35 seconds
......@@ -126,7 +126,7 @@ static void DXA9_YV12(filter_t *p_filter, picture_t *src, picture_t *dst)
__MIN(desc.Height, src->format.i_y_offset + src->format.i_visible_height),
6, p_copy_cache);
if (dst->format.i_chroma != VLC_CODEC_I420 && dst->format.i_chroma != VLC_CODEC_I420_10L)
if (dst->format.i_chroma == VLC_CODEC_YV12)
picture_SwapUV(dst);
} else {
msg_Err(p_filter, "Unsupported DXA9 conversion from 0x%08X to YV12", desc.Format);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment