From: Lin YANG Date: Mon, 17 Aug 2009 09:51:36 +0000 (+0800) Subject: h264parse: decode PPS X-Git-Tag: 1.19.3~507^2~18237 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba5a75d5510495d26e905c9cb7854325cfec589c;p=platform%2Fupstream%2Fgstreamer.git h264parse: decode PPS --- diff --git a/gst/h264parse/gsth264parse.c b/gst/h264parse/gsth264parse.c index 91f8faf..3eedb7c 100644 --- a/gst/h264parse/gsth264parse.c +++ b/gst/h264parse/gsth264parse.c @@ -551,6 +551,26 @@ gst_nal_decode_sps (GstH264Parse * h, GstNalBs * bs) return TRUE; } +/* decode pic parameter set */ +static gboolean +gst_nal_decode_pps (GstH264Parse * h, GstNalBs * bs) +{ + guint8 pps_id; + GstH264Pps *pps = NULL; + + pps_id = gst_nal_bs_read_ue (bs); + pps = gst_h264_parse_get_pps (h, pps_id); + if (pps == NULL) { + return FALSE; + } + h->pps = pps; + + pps->sps_id = gst_nal_bs_read_ue (bs); + + /* not parsing the rest for the time being */ + return TRUE; +} + GST_BOILERPLATE (GstH264Parse, gst_h264_parse, GstElement, GST_TYPE_ELEMENT);