GNOME Bugzilla – Bug 728364
mpegts: add service list, stuffing and bouquet name descriptors
Last modified: 2014-05-26 09:57:19 UTC
Created attachment 274503 [details] [review] add service list descriptor mpegts: add service list, stuffing and bouquet name descriptors
Created attachment 274504 [details] [review] add stuffing descriptor
Created attachment 274505 [details] [review] add bouquet name descriptor
Comment on attachment 274503 [details] [review] add service list descriptor Please don't use for (guint i = 0; ...) But guint i; for (i= 0; ....) Thanks.
Review of attachment 274505 [details] [review]: ::: gst-libs/gst/mpegts/gst-dvb-descriptor.c @@ +410,3 @@ + data = (guint8 *) descriptor->data + 2; + + *bouquet_name = get_encoding_and_convert ((const gchar *) data + 1, *data); You are reading two bytes here but the size check is only for one byte
Created attachment 274511 [details] [review] add service list descriptor
Created attachment 274512 [details] [review] add stuffing descriptor
Created attachment 274513 [details] [review] add bouquet name descriptor
Review of attachment 274512 [details] [review]: ::: gst-libs/gst/mpegts/gst-dvb-descriptor.c @@ +177,3 @@ + + g_return_val_if_fail (descriptor != NULL && stuffing_bytes != NULL, FALSE); + __common_desc_checks (descriptor, GST_MTS_DESC_DVB_STUFFING, 2, FALSE); Why 2? Even 0 would be ok, no?
Please also remove the "signed-off" line from the commit message, and instead put the URL to this bug report there (in all patches) :)
Created attachment 274595 [details] [review] add service list descriptor
Created attachment 274596 [details] [review] add stuffing descriptor
Created attachment 274597 [details] [review] add bouquet name descriptor
Pushed. There was bug in the bouquet name descriptor parsing (it's not length-prefixed) In the future it would be nice if you could include support for the tsparser example when you add descriptor handling. Allows everyone to be on the same page and would avoid discovering such issues. commit 8d71ec9f389337be19266b9ec018e09b677115ab Author: Edward Hervey <bilboed@bilboed.com> Date: Mon May 26 11:55:31 2014 +0200 examples: Add support for DVB Bouquet Name parsing commit 42c061b0e739cd4956862dc4a876cf55cebd72ac Author: Edward Hervey <bilboed@bilboed.com> Date: Mon May 26 11:54:50 2014 +0200 mpegts: Fix Bouquet Name parsing the field is not length prefixed commit 2240630b041b5f84c80c1d28dc0530160597e825 Author: Edward Hervey <bilboed@bilboed.com> Date: Mon May 26 11:42:46 2014 +0200 examples: Add support for DVB Service List descriptor commit bc7cf1520c4b303c9bbc4fb99624cda9a432b417 Author: Stefan Ringel <linuxtv@stefanringel.de> Date: Thu Apr 17 14:56:23 2014 +0200 mpegts: add bouquet name descriptor https://bugzilla.gnome.org/show_bug.cgi?id=728364 commit 985d19deaa59514227f8f655a07a5651b31e5bfe Author: Stefan Ringel <linuxtv@stefanringel.de> Date: Thu Apr 17 14:55:29 2014 +0200 mpegts: add stuffing descriptor https://bugzilla.gnome.org/show_bug.cgi?id=728364 commit 570f78df799bfeedfaf029e29da22db2dc49959a Author: Stefan Ringel <linuxtv@stefanringel.de> Date: Thu Apr 17 14:54:28 2014 +0200 mpegts: add service list descriptor https://bugzilla.gnome.org/show_bug.cgi?id=728364