codecparsers: h264: add inferred value for slice_beta_offset_div2.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Sun, 6 Jan 2013 17:54:52 +0000 (18:54 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 22 Jan 2013 10:19:17 +0000 (11:19 +0100)
The standard specifies that when slice_beta_offset_div2 is not present
in the slice header, then the value of slice_beta_offset_div2 shall be
inferred to be equal to 0.

https://bugzilla.gnome.org/show_bug.cgi?id=692265

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

index ac307c8..d8cebe3 100644 (file)
@@ -1815,6 +1815,7 @@ gst_h264_parser_parse_slice_hdr (GstH264NalParser * nalparser,
   slice->num_ref_idx_l1_active_minus1 = pps->num_ref_idx_l1_active_minus1;
   slice->disable_deblocking_filter_idc = 0;
   slice->slice_alpha_c0_offset_div2 = 0;
+  slice->slice_beta_offset_div2 = 0;
 
   if (sps->separate_colour_plane_flag)
     READ_UINT8 (&nr, slice->colour_plane_id, 2);