encoder: h264: fix frame cropping rectangle calculation.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 13 Jan 2014 12:41:35 +0000 (13:41 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 13 Jan 2014 16:31:55 +0000 (17:31 +0100)
commit78bf2c01ccaf716da2179cb15f3438f1d544f12c
treec4c66b8880feb7d0b5a4b95e2d4520460ecb930f
parentc7a2095b78f9b543b9e97b8556d1d67f2e23487b
encoder: h264: fix frame cropping rectangle calculation.

Fix frame cropping rectangle calculation to handle horizontal resolutions
that don't match a multiple of 16 pixels, but also the vertical resolution
that was incorrectly computed for progressive sequences too.

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