diff options
author | Boyuan Zhang <boyuan.zhang@amd.com> | 2015-09-23 10:11:07 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2015-11-06 20:07:23 +0100 |
commit | ed55def44febbe1662ddcc0c33a23308899ce488 (patch) | |
tree | e394256229794bd21d98a5418eedc12668d46e7a | |
parent | cc1e5c972eff8c774c93c8dc51d89b550d00633e (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 <boyuan.zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Cc: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
-rw-r--r-- | src/gallium/state_trackers/va/picture.c | 2 |
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 d6cdbea197..5e7841a052 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)) |