mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
h264parse: decode PPS
This commit is contained in:
parent
2531e5f584
commit
ba5a75d551
1 changed files with 20 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue