h264: Don't set num_slices anymore

The num_slices parameter was improperly set to the number of reference
frames, which is incorrect.

Add a counter for the number of slices per surface, and set num_slices to
that value.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
This commit is contained in:
Maxime Ripard
2018-07-17 15:17:35 +02:00
parent 38d38134c7
commit 2d1bce38c2
4 changed files with 6 additions and 2 deletions
+1
View File
@@ -65,6 +65,7 @@ static VAStatus codec_store_buffer(struct cedrus_data *driver_data,
buffer_object->size * buffer_object->count);
surface_object->slices_size +=
buffer_object->size * buffer_object->count;
surface_object->slices_count++;
break;
case VAPictureParameterBufferType: