summaryrefslogtreecommitdiffstats
path: root/gst/mpegtsparse/gstmpegdesc.h
diff options
context:
space:
mode:
authorZaheer Abbas Merali <zaheerabbas@merali.org>2008-01-24 08:12:29 +0000
committerZaheer Abbas Merali <zaheerabbas@merali.org>2008-01-24 08:12:29 +0000
commitc21135ddd32ac7f306f5c50a5c78f946648e36ae (patch)
tree83bce61f57c17a5258fc5070fad3b0095ab30360 /gst/mpegtsparse/gstmpegdesc.h
parentf0173409bacbc57dac5ee6a9fe94afad283ac5d9 (diff)
downloadgst-plugins-bad-c21135ddd32ac7f306f5c50a5c78f946648e36ae.tar.gz
gst-plugins-bad-c21135ddd32ac7f306f5c50a5c78f946648e36ae.tar.bz2
gst-plugins-bad-c21135ddd32ac7f306f5c50a5c78f946648e36ae.zip
gst/mpegtsparse/: Fix network name descriptor, the length is actually the descriptor length not stored in the byte af...
Original commit message from CVS: * gst/mpegtsparse/gstmpegdesc.h: * gst/mpegtsparse/mpegtspacketizer.c: Fix network name descriptor, the length is actually the descriptor length not stored in the byte after. Fix bounds checking to be more correct.
Diffstat (limited to 'gst/mpegtsparse/gstmpegdesc.h')
-rw-r--r--gst/mpegtsparse/gstmpegdesc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/mpegtsparse/gstmpegdesc.h b/gst/mpegtsparse/gstmpegdesc.h
index f1ed7453..b75f6eb7 100644
--- a/gst/mpegtsparse/gstmpegdesc.h
+++ b/gst/mpegtsparse/gstmpegdesc.h
@@ -241,8 +241,8 @@
#define DESC_DVB_STREAM_IDENTIFIER_component_tag(desc) (desc[2])
/* DVB Network Name descriptor */
-#define DESC_DVB_NETWORK_NAME_length(desc) (GST_READ_UINT8((desc)+2))
-#define DESC_DVB_NETWORK_NAME_text(desc) (desc+3)
+#define DESC_DVB_NETWORK_NAME_length(desc) (GST_READ_UINT8((desc)+1))
+#define DESC_DVB_NETWORK_NAME_text(desc) (desc+2)
/* DVB Service Descriptor */
#define DESC_DVB_SERVICE_type(desc) (desc[2])