codecparsers: h264: fix slice_header() parsing for MVC.

The idr_pic_id syntax element depends on IdrPicFlag, which is a calculated
value that does not only depend on NAL unit type (IDR), but possibly also
on MVC non_idr_flag syntax element.

The computed idr_pic_flag is already stored in GstH264NalUnit structure.

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

Signed-off-by: Li Xiaowei <xiaowei.a.li@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
Li Xiaowei 2013-03-08 09:57:22 +08:00 committed by Gwenole Beauchesne
parent 8dc7ab49fe
commit 24c1ae72d3

View file

@ -1640,7 +1640,7 @@ gst_h264_parser_parse_slice_hdr (GstH264NalParser * nalparser,
else
slice->max_pic_num = 2 * sps->max_frame_num;
if (nalu->type == 5)
if (nalu->idr_pic_flag)
READ_UE_ALLOWED (&nr, slice->idr_pic_id, 0, G_MAXUINT16);
if (sps->pic_order_cnt_type == 0) {