mpegts: adjustable minimum PES payload
authorJindřich Makovička <makovick@gmail.com>
Mon, 19 Dec 2011 19:15:21 +0000 (20:15 +0100)
committerAnton Khirnov <anton@khirnov.net>
Wed, 28 Dec 2011 19:31:54 +0000 (20:31 +0100)
commit891ce00c8ddad096cc26d7aa55b4f1bc26a1f124
tree67587f096d1a4f376abe5332f1a4c04c72689ca3
parent6fa9843b4baf93a95be5ce7c6ad5c041992504bf
mpegts: adjustable minimum PES payload

With the current default PES packet size, and very small audio bitrates,
audio packet duration gets too long. For players, which wait for a whole
audio packet (or more) it takes a very long time to start playing sound.

For 24kbps audio, one PES packet is about 1 second long. On Motorola STBs,
we observe about 3 second delay before the playback starts with the
default setting.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/mpegtsenc.c