From ed55def44febbe1662ddcc0c33a23308899ce488 Mon Sep 17 00:00:00 2001 From: Boyuan Zhang Date: Wed, 23 Sep 2015 10:11:07 +0200 Subject: st/vaapi: fix vaapi VC-1 simple/main corruption v2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apply the start code fix only to advanced profile. v2 (chk): add commit message Signed-off-by: Boyuan Zhang Reviewed-by: Christian König Reviewed-by: Alex Deucher Cc: "10.6 11.0" --- src/gallium/state_trackers/va/picture.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/state_trackers/va/picture.c') diff --git a/src/gallium/state_trackers/va/picture.c b/src/gallium/state_trackers/va/picture.c index d6cdbea197d..5e7841a0521 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)) -- cgit v1.2.3