Mesa (master): st/vaapi: fix vaapi VC-1 simple/main corruption v2

Christian König deathsimple at kemper.freedesktop.org
Fri Nov 6 19:07:34 UTC 2015


Module: Mesa
Branch: master
Commit: ed55def44febbe1662ddcc0c33a23308899ce488
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ed55def44febbe1662ddcc0c33a23308899ce488

Author: Boyuan Zhang <boyuan.zhang at amd.com>
Date:   Wed Sep 23 10:11:07 2015 +0200

st/vaapi: fix vaapi VC-1 simple/main corruption v2

Apply the start code fix only to advanced profile.

v2 (chk): add commit message

Signed-off-by: Boyuan Zhang <boyuan.zhang at amd.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
Cc: "10.6 11.0" <mesa-stable at lists.freedesktop.org>

---

 src/gallium/state_trackers/va/picture.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/state_trackers/va/picture.c b/src/gallium/state_trackers/va/picture.c
index d6cdbea..5e7841a 100644
--- a/src/gallium/state_trackers/va/picture.c
+++ b/src/gallium/state_trackers/va/picture.c
@@ -694,8 +694,10 @@ handleVASliceDataBufferType(vlVaContext *context, vlVaBuffer *buf)
           bufHasStartcode(buf, 0x0000010b, 32))
          break;
 
+      if (context->decoder->profile == PIPE_VIDEO_PROFILE_VC1_ADVANCED) {
          buffers[num_buffers] = (void *const)&start_code_vc1;
          sizes[num_buffers++] = sizeof(start_code_vc1);
+      }
       break;
    case PIPE_VIDEO_FORMAT_MPEG4:
       if (bufHasStartcode(buf, 0x000001, 24))




More information about the mesa-commit mailing list