diff options
author | Li Xiaowei <xiaowei.a.li@intel.com> | 2013-03-08 09:57:22 +0800 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2014-03-24 19:38:13 +0100 |
commit | 24c1ae72d344c81aa16270f2cc17387a7af7175d (patch) | |
tree | d3a3e69137da642fec5fc929585d32cc4af3e46e /gst-libs/gst/codecparsers/gsth264parser.c | |
parent | 8dc7ab49fe430a6626da7552dd41db8603a67811 (diff) | |
download | gstreamer-plugins-bad-24c1ae72d344c81aa16270f2cc17387a7af7175d.tar.gz |
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>
Diffstat (limited to 'gst-libs/gst/codecparsers/gsth264parser.c')
-rw-r--r-- | gst-libs/gst/codecparsers/gsth264parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/codecparsers/gsth264parser.c b/gst-libs/gst/codecparsers/gsth264parser.c index bc0101447..054aa1c55 100644 --- a/gst-libs/gst/codecparsers/gsth264parser.c +++ b/gst-libs/gst/codecparsers/gsth264parser.c @@ -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) { |