encoder: h264: refine size of coded buffer.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Sun, 12 Jan 2014 21:14:11 +0000 (22:14 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 13 Jan 2014 16:31:55 +0000 (17:31 +0100)
commit00e0af9a7c471fc59c6cb33589b5462c98cd79f8
tree505dc8729a3b68f7c42141fced5e041411f9c333
parent8df97cf9ec600d8920de43dbaa75be940c669f05
encoder: h264: refine size of coded buffer.

Refine the heuristic to determine the maximum size of a coded buffer
to account for the exact number of slices. set_context_info() is the
last step during codec reconfiguration, no additional change is done
afterwards, so re-using the num_slices field here is fine.

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