Julien Moutte 6f1ee59df6 mpegtsmux: generate SPS/PPS header once and fix overflow
Some H264 packets can be as small as 5 bytes for repeated frames.
In such a situation the output buffer size was not big enough (5*2) to fit the
SPS/PPS header and the start codes. This corrupts the ES stream.
We now generate the SPS/PPS only once which is much more optimal and we now
know the size of the header to calculate the output buffer size more safely.
2010-02-02 12:23:24 +01:00
..
2009-11-18 17:58:39 +01:00
2010-01-18 10:58:39 +01:00
2009-11-22 19:30:58 +00:00
2010-01-12 00:29:57 +00:00
2009-11-22 19:30:58 +00:00
2009-11-18 17:57:59 +01:00
2009-11-22 19:30:58 +00:00
2009-11-22 19:30:58 +00:00
2009-10-02 12:07:32 +02:00