From: Andreas Ă–man Date: Sat, 9 Feb 2008 07:49:25 +0000 (+0000) Subject: It seems most broadcasts uses a buffer fullness of half the vbv when sending, let... X-Git-Tag: 2.12~1236 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=09129a1ba2dc46aa33df959c6cc53cfa2d7b443e;p=thirdparty%2Ftvheadend.git It seems most broadcasts uses a buffer fullness of half the vbv when sending, let's do the same --- diff --git a/tsmux.c b/tsmux.c index fa63c37aa..2ef07ce23 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; }