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
@@ -59,6 +59,7 @@ struct object_surface {
unsigned int destination_buffers_count;
unsigned int slices_size;
unsigned int slices_count;
union {
struct {