mpegtsmux: single byte stuffing
Submitted by Jesper Larsen
Link to original bug (#771764)
Description
Created attachment 335988
[PATCH] mpegtsmux: Support single byte adaptation stuffing
In the current implementation, the adaptation field has a minimum size of 2 bytes. This means that if a single stuffing byte is needed, we create 2 packets, where the second packet only contains a single payload byte.
This patch changes the implementation. If we only have the adaptation field for stuffing, and the minimum length requested is 1 byte, we set the adaptation length to 0, and only write a single byte.
Patch 335988, "[PATCH] mpegtsmux: Support single byte adaptation stuffing":
0001-mpegtsmux-Support-single-byte-adaptation-stuffing.patch