mpeg2: Set with and height once, from context
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
This commit is contained in:
+2
-5
@@ -45,8 +45,8 @@ int mpeg2_fill_picture_parameters(struct sunxi_cedrus_driver_data *driver_data,
|
||||
|
||||
header->type = MPEG2;
|
||||
|
||||
header->width = parameters->horizontal_size;
|
||||
header->height = parameters->vertical_size;
|
||||
header->width = context_object->picture_width;
|
||||
header->height = context_object->picture_height;
|
||||
|
||||
header->picture_coding_type = parameters->picture_coding_type;
|
||||
header->f_code[0][0] = (parameters->f_code >> 12) & 0x0f;
|
||||
@@ -75,9 +75,6 @@ int mpeg2_fill_picture_parameters(struct sunxi_cedrus_driver_data *driver_data,
|
||||
else
|
||||
header->backward_ref_index = surface_object->destination_index;
|
||||
|
||||
header->width = context_object->picture_width;
|
||||
header->height = context_object->picture_height;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user