Commit 608d2841 authored by Rafaël Carré's avatar Rafaël Carré

dxva2: fix chroma pitch calculation

(cherry picked from commit fece3fcfffaca0bb13356c04010cb129f72a8b02)
Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent 20d2602c
...@@ -434,7 +434,7 @@ static int Extract(vlc_va_t *external, picture_t *picture, AVFrame *ff) ...@@ -434,7 +434,7 @@ static int Extract(vlc_va_t *external, picture_t *picture, AVFrame *ff)
if (va->render == MAKEFOURCC('Y','V','1','2') || if (va->render == MAKEFOURCC('Y','V','1','2') ||
va->render == MAKEFOURCC('I','M','C','3')) { va->render == MAKEFOURCC('I','M','C','3')) {
bool imc3 = va->render == MAKEFOURCC('I','M','C','3'); bool imc3 = va->render == MAKEFOURCC('I','M','C','3');
size_t chroma_pitch = imc3 ? lock.Pitch : lock.Pitch / 2; size_t chroma_pitch = imc3 ? lock.Pitch : (lock.Pitch / 2);
size_t pitch[3] = { size_t pitch[3] = {
lock.Pitch, lock.Pitch,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment