summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorMichael Varga <[email protected]>2014-10-23 10:36:52 -0500
committerLeo Liu <[email protected]>2014-11-10 10:24:07 -0500
commitfa9e46196750d1c8f3d61724182334e77828643b (patch)
treed83775098aab7610b092f432039a5653cf0f73b5 /src/gallium/state_trackers
parent92350a65c47f95e9630e815172529de4e583e247 (diff)
st/va: MPEG4 populate the SPS structure
Signed-off-by: Michael Varga <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/va/picture.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/va/picture.c b/src/gallium/state_trackers/va/picture.c
index 327c33d9cb0..ff13bc66e74 100644
--- a/src/gallium/state_trackers/va/picture.c
+++ b/src/gallium/state_trackers/va/picture.c
@@ -344,6 +344,7 @@ static void
handleSliceParameterBuffer(vlVaContext *context, vlVaBuffer *buf)
{
VASliceParameterBufferH264 *h264;
+ VASliceParameterBufferMPEG4 *mpeg4;
switch (u_reduce_video_profile(context->decoder->profile)) {
case PIPE_VIDEO_FORMAT_MPEG4_AVC:
@@ -354,7 +355,12 @@ handleSliceParameterBuffer(vlVaContext *context, vlVaBuffer *buf)
context->desc.h264.num_ref_idx_l1_active_minus1 =
h264->num_ref_idx_l1_active_minus1;
break;
+ case PIPE_VIDEO_FORMAT_MPEG4:
+ assert(buf->size >= sizeof(VASliceParameterBufferMPEG4) && buf->num_elements == 1);
+ mpeg4 = buf->data;
+ context->mpeg4.quant_scale = mpeg4->quant_scale;
+ break;
default:
break;
}