mpegtsenc: Take max_delay into account when buffering multiple audio packets into...
authorMartin Storsjö <martin@martin.st>
Thu, 2 Apr 2015 08:09:31 +0000 (11:09 +0300)
committerMartin Storsjö <martin@martin.st>
Fri, 3 Apr 2015 11:06:15 +0000 (14:06 +0300)
commit7d097a0fc57f0fa8385962a539c657c2f40b5ed0
tree0465badb2e2dcb10118530f7a3e1aba885b8ccd2
parente3ec6fe7bb2a622a863e3912181717a659eb1bad
mpegtsenc: Take max_delay into account when buffering multiple audio packets into one PES packet

Make sure we don't buffer up more than max_delay worth of data
before writing a PES packet, even if pes_payload_size is set to
a larger value.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/mpegtsenc.c