gstreamer/gst/mpegtsmux
Andoni Morales Alastruey 4668330bdc mpegtsmux: Initialize PES packet before getting the header size.
The PES header length is calculated before setting the dynamic flags, returning
a wrong value. Small frames that should be sent in a single TS packet are
spawned to a new packet because of that error. For audio streams where a single
frame can cope in one TS packet it introduces a huge overhead.

For a 100B packet, we prepare a TS packet with a payload of(100+9)B. Then, we
write the TS header using this value in tsmux_write_ts_header, and call
tsmux_stream_get_data(). The dynamic flags where not set yet and now
tsmux_stream_pes_header_length() returns 14B instead of 9B. The payload of the
TS packet is 114B, 5B more than what was calculated. 109B are sent in a first
packet and the remaining 5B are sent in another one.

Fixes bug #628548.
2010-09-04 15:01:30 +02:00
..
tsmux mpegtsmux: Initialize PES packet before getting the header size. 2010-09-04 15:01:30 +02:00
Makefile.am Don't install static libs for plugins. Fixes #550851 for -bad. 2008-11-04 12:42:30 +00:00
mpegtsmux.c mpegtsmux: take all the pmt in the streamheaders 2010-06-08 15:36:29 +02:00
mpegtsmux.h mpegtsmux: add PAT/PMT in streamheader 2010-02-03 18:26:15 +00:00
mpegtsmux_aac.c gst/mpegtsmux/mpegtsmux_aac.c: Allocate a fixed size buffer on the stack instead of using malloc(). 2008-09-01 17:49:59 +00:00
mpegtsmux_aac.h
mpegtsmux_h264.c mpegtsmux: Fix a potential unref of a NULL pointer. 2010-02-04 19:45:42 +01:00
mpegtsmux_h264.h mpegtsmux: generate SPS/PPS header once and fix overflow 2010-02-02 12:23:24 +01:00