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)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 8 Jul 2013 16:51:26 +0000 (18:51 +0200)
commitf90de0a5836546f8e37b41adca14f76bfaaec44d
tree704a5f85d8ff6d03d9129f111ca92e3e9416e911
parent535515c8ff643c8daf51f3db547b331f541472a0
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