codecparsers: h264: fix calculation of the frame cropping rectangle.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 8 Jul 2013 16:44:24 +0000 (18:44 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Tue, 9 Jul 2013 10:15:07 +0000 (12:15 +0200)
commitac9c1ae5a8ff77c3455832ae726fa6a7f7891a4d
treea620522d85281a235dd432f6cdd8bcc9a2482f85
parent529ece338fcefd8291e09d6d3fe66357df13078f
codecparsers: h264: fix calculation of the frame cropping rectangle.

Fix calculation of the frame cropping rectangle, and more precisely
the actual cropped height. The frame_crop_top_offset subtraction
was not scaled up with SubHeightC.

Also clean-up variables to align more with (7-18) to (7-21).

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
gst-libs/gst/codecparsers/gsth264parser.c