mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
st/va: MPEG4 call vlVaDecoderFixMPEG4Startcode()
If the VOP and GOV headers were truncated they will be regenerated. Signed-off-by: Michael Varga <Michael.Varga@amd.com>
This commit is contained in:
parent
d335f5ffa6
commit
9d6253cf82
1 changed files with 7 additions and 0 deletions
|
|
@ -503,6 +503,13 @@ handleVASliceDataBufferType(vlVaContext *context, vlVaBuffer *buf)
|
|||
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))
|
||||
break;
|
||||
|
||||
vlVaDecoderFixMPEG4Startcode(context);
|
||||
buffers[num_buffers] = (void *)context->mpeg4.start_code;
|
||||
sizes[num_buffers++] = context->mpeg4.start_code_size;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue