[Bug 753760] rtph265: sync against latest spec
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Thu Jul 7 11:33:19 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=753760
--- Comment #16 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
(In reply to Jonas Holmberg from comment #15)
> (In reply to Sebastian Dröge (slomo) from comment #14)
> > Review of attachment 330940 [details] [review] [review]:
> >
> > ::: gst/rtp/gstrtph265depay.c
> > @@ +775,3 @@
> > + ps = NULL;
> > + } else {
> > + ps = g_strdup_printf ("%s,%s,%s", vps, sps, pps);
> >
> > It would probably be nicer to split this code apart so that each structure
> > is parsed independently instead of concatenating them all together just to
> > tear them apart again
>
> Yes, I agree. But I was thinking that it could be done in a later commit
> since it requires a bit of refactoring?
Probably not too much though? The first thing that happens a few lines below in
all cases is "params = g_strsplit (ps, ",", 0);"
You could just fill this params array instead of first creating the string
> > @@ +404,3 @@
> > gst_buffer_unmap (vps_buf, &map);
> >
> > + g_string_append_printf (vps, "%s%s", i ? "," : "", set);
> >
> > You don't need GString for these anymore, the strings are always going to be
> > exactly set
>
> How do you mean? Each one of the three lists (vps, sps and pps) has to be
> comma separated.
Ah I missed that there could be multiple VPS, PPS, SPS. Alright then :)
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list