summaryrefslogtreecommitdiff
path: root/gst/mpegtsmux
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2017-07-21 09:27:20 +0300
committerSebastian Dröge <sebastian@centricular.com>2017-07-21 09:33:31 +0300
commit3fe65ad854ff12be9fc63e0cfa7431959be85ee5 (patch)
tree22c6eef76ef6a67f1e5fb779fa028d613be148ce /gst/mpegtsmux
parentbbbdc2cd7ed282edabb6715a0b9b72d23676ee0f (diff)
downloadgstreamer-plugins-bad-3fe65ad854ff12be9fc63e0cfa7431959be85ee5.tar.gz
tsmux: Store PES payload size in a 32 bit integer
While the size in the packet is only 16 bits, we need to handle bigger sizes without overflowing. For video streams this can happen, 0 is written to the stream instead. This fixes muxing of buffers >= 2**16.
Diffstat (limited to 'gst/mpegtsmux')
-rw-r--r--gst/mpegtsmux/tsmux/tsmuxstream.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/mpegtsmux/tsmux/tsmuxstream.h b/gst/mpegtsmux/tsmux/tsmuxstream.h
index 8befbe5f4..7edfb61ec 100644
--- a/gst/mpegtsmux/tsmux/tsmuxstream.h
+++ b/gst/mpegtsmux/tsmux/tsmuxstream.h
@@ -184,9 +184,9 @@ struct TsMuxStream {
/* optional fixed PES size for stream type */
guint16 pes_payload_size;
/* current PES payload size being written */
- guint16 cur_pes_payload_size;
+ guint32 cur_pes_payload_size;
/* ... of which already this much written */
- guint16 pes_bytes_written;
+ guint32 pes_bytes_written;
/* PTS/DTS to write if the flags in the packet info are set */
/* in MPEG PTS clock time */