summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorBoyuan Zhang <[email protected]>2015-09-23 10:11:07 +0200
committerEmil Velikov <[email protected]>2015-11-18 18:49:41 +0000
commit71a785fc5f87d7755bfa90842cd7011be609d744 (patch)
tree83bda2e4bc285ea6054fe75f0aae2181a982b549 /src/gallium/state_trackers
parentf6e19f673e921901bf5a297800ab7faeaec6d38f (diff)
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 <[email protected]> Reviewed-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Cc: "10.6 11.0" <[email protected]> (cherry picked from commit ed55def44febbe1662ddcc0c33a23308899ce488)
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/va/picture.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/va/picture.c b/src/gallium/state_trackers/va/picture.c
index a0d530bb797..e20184cc1c6 100644
--- a/src/gallium/state_trackers/va/picture.c
+++ b/src/gallium/state_trackers/va/picture.c
@@ -500,8 +500,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))