encoder: h264: fix ip_period value in sequence parameter.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 21 Jan 2014 16:35:24 +0000 (17:35 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 22 Jan 2014 17:30:26 +0000 (18:30 +0100)
commitd9cf58e88a88a44168044c5f0a5a9da9943ec523
tree0c2ec55e201cd9c3dc3cb4ff9622960d72459dd4
parent586f872085cc1c4e5722b225de3ba0170fe53efa
encoder: h264: fix ip_period value in sequence parameter.

The VAEncSequenceParameterBuffer.ip_period value reprents the distance
between the I-frame and the next P-frame. So, this also accounts for
any additional B-frame in the middle of it.

This fixes rate control heuristics for certain VA drivers.

https://bugzilla.gnome.org/show_bug.cgi?id=722735
gst-libs/gst/vaapi/gstvaapiencoder_h264.c