st/va: remove assert for single slice
authorNayan Deshmukh <nayan26deshmukh@gmail.com>
Tue, 21 Mar 2017 08:14:27 +0000 (13:44 +0530)
committerChristian König <christian.koenig@amd.com>
Tue, 28 Mar 2017 10:08:54 +0000 (12:08 +0200)
we anyway allow for multiple slices

v2: do not remove assert to check for buf->size

Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/va/picture_mpeg12.c

index 812e9e5b2a921726bb3547a292afa11c3995238a..1e5a9c7428d989eff16443a983496c0f435d8bff 100644 (file)
@@ -81,6 +81,6 @@ void vlVaHandleIQMatrixBufferMPEG12(vlVaContext *context, vlVaBuffer *buf)
 
 void vlVaHandleSliceParameterBufferMPEG12(vlVaContext *context, vlVaBuffer *buf)
 {
-   assert(buf->size >= sizeof(VASliceParameterBufferMPEG2) && buf->num_elements == 1);
+   assert(buf->size >= sizeof(VASliceParameterBufferMPEG2));
    context->desc.mpeg12.num_slices += buf->num_elements;
 }