From 09129a1ba2dc46aa33df959c6cc53cfa2d7b443e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Sat, 9 Feb 2008 07:49:25 +0000 Subject: [PATCH] It seems most broadcasts uses a buffer fullness of half the vbv when sending, let's do the same --- tsmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsmux.c b/tsmux.c index fa63c37a..2ef07ce2 100644 --- a/tsmux.c +++ b/tsmux.c @@ -387,7 +387,7 @@ lookahead_dequeue(ts_muxer_t *ts, th_muxstream_t *tms) if(tms->tms_mux_offset == AV_NOPTS_VALUE) { if(tms->tms_stream->st_vbv_delay == -1) - tms->tms_mux_offset = tdur - pkt->pkt_duration; + tms->tms_mux_offset = tdur / 2 - pkt->pkt_duration; else tms->tms_mux_offset = tms->tms_stream->st_vbv_delay; }