mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-01 13:49:58 +00:00
h264: optimize initialization process of decoder units.
Decoder units were zero-initialized, including the SPS/PPS/slice headers. The latter don't require zero-initialization since the codecparsers/ lib will do so for key variables already. This is not a great value per se but at least it makes it possible to check whether the default initialization decisions made in the codecparsers/ lib were right or not. This can be reverted if this exposes too many issues.
This commit is contained in:
parent
0b2e399235
commit
098eb2624e
1 changed files with 2 additions and 2 deletions
|
@ -74,11 +74,11 @@ gst_vaapi_decoder_unit_h264_new(guint size)
|
|||
};
|
||||
|
||||
unit = (GstVaapiDecoderUnitH264 *)
|
||||
gst_vaapi_mini_object_new0(&GstVaapiDecoderUnitH264Class);
|
||||
gst_vaapi_mini_object_new(&GstVaapiDecoderUnitH264Class);
|
||||
if (!unit)
|
||||
return NULL;
|
||||
|
||||
unit->base.size = size;
|
||||
gst_vaapi_decoder_unit_init(&unit->base, size);
|
||||
return unit;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue