encoder: h264: generate new SPS only when codec config changed.
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Fri, 27 Jun 2014 13:38:03 +0000 (16:38 +0300)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 27 Jun 2014 18:26:21 +0000 (20:26 +0200)
commit95d7f95971467bc7af75f8be4b68d5d7c8df4f99
tree31e6c740220719a2012f3c27a55bb2effdac34be
parent0d971bce26a2c91eaec229849b5bfc0c4019b0da
encoder: h264: generate new SPS only when codec config changed.

It is not necessary to periodically send SPS or subset SPS headers.
This is up to the upper layer (e.g. transport layer) to decide on
if/how to periodically submit those. For now, only generate new SPS
or subset SPS headers when the codec config changed.

Note: the upper layer could readily determine the config headers
(SPS/PPS) through the gst_vaapi_encoder_h264_get_codec_data() function.

https://bugzilla.gnome.org/show_bug.cgi?id=732083

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
gst-libs/gst/vaapi/gstvaapiencoder_h264.c