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:
Gwenole Beauchesne 2012-12-18 14:57:36 +01:00
parent 0b2e399235
commit 098eb2624e

View file

@ -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;
}