encoder: fix computation of max coded buffer size (again).
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 5 Dec 2013 17:13:54 +0000 (18:13 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 5 Dec 2013 17:13:54 +0000 (18:13 +0100)
commit2940a74ea45956edb8ec3e94bb983e255fcf0dc1
tree91d0a0b25c8c85922b08fb96700fab12332d4430
parentb864d1f71acc47bd41b8e7171c4ad4d6628849f4
encoder: fix computation of max coded buffer size (again).

The previous fix was only valid to express the maximum size of the
macroblock layer, i.e. without any headers. Now, also account for
the slice headers and top picture header, but also any other header
we might stuff into the VA coded buffer, e.g. sequence headers.
gst-libs/gst/vaapi/gstvaapiencoder_h264.c
gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c