encoder: h264: fix bitrate encoding for HRD conformance.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 22 Jan 2014 13:43:24 +0000 (14:43 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 22 Jan 2014 17:30:26 +0000 (18:30 +0100)
commit9d42c864229b9f03ec3f21a838c7b7a73325c11a
tree5ce7721debe08a14e9a97ec9f49958ae71a66845
parent4c04a1bc8803ca40ecc2ef60a5324e1094ed0069
encoder: h264: fix bitrate encoding for HRD conformance.

Round down the calculated, or supplied, bitrate (kbps) into a multiple
of the HRD bitrate scale factor. Use a bitrate scale factor of 64 so
that to have less losses in precision. Likewise, don't round up because
that could be a strict constraint imposed by the user.
gst-libs/gst/vaapi/gstvaapiencoder_h264.c