codecparsers: h264: fix parsing of slice groups for map type = 2.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Sun, 27 Apr 2014 21:29:41 +0000 (23:29 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 28 Apr 2014 07:37:00 +0000 (09:37 +0200)
commite8c625ec9c9da9df035bf5fceec308b0a51be632
treed6d5596a5dcc3797c80ce0356821e82324eeff0f
parent18a76b1bb37e63d45f4333aa93196b5d2ec09e61
codecparsers: h264: fix parsing of slice groups for map type = 2.

When parsing slice groups information for slice_group_map_type = 2, we
should only be reading up to num_slice_groups_minus1 groups since there
is always a "leftover" slice group and as many "foreground" slice groups
as needed.

This fixes parsing for SVCBMT-5 and SVCBMT-12 whereby the base layer would
have incorrectly been parsed to have up to 38 reference frames in list0,
which is not possible.

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