context->desc.base.protected_playback = true;
}
-static void
+static VAStatus
handleVASliceDataBufferType(vlVaContext *context, vlVaBuffer *buf)
{
enum pipe_video_format format = u_reduce_video_profile(context->templat.profile);
static const uint8_t start_code_vc1[] = { 0x00, 0x00, 0x01, 0x0d };
static const uint8_t eoi_jpeg[] = { 0xff, 0xd9 };
+ if (!context->decoder)
+ return VA_STATUS_ERROR_INVALID_CONTEXT;
+
format = u_reduce_video_profile(context->templat.profile);
if (!context->desc.base.protected_playback) {
switch (format) {
}
context->decoder->decode_bitstream(context->decoder, context->target, &context->desc.base,
num_buffers, (const void * const*)buffers, sizes);
+ return VA_STATUS_SUCCESS;
}
static VAStatus
break;
case VASliceDataBufferType:
- handleVASliceDataBufferType(context, buf);
+ vaStatus = handleVASliceDataBufferType(context, buf);
break;
case VAProcPipelineParameterBufferType: