]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
It seems most broadcasts uses a buffer fullness of half the vbv when sending, let...
authorAndreas Öman <andreas@lonelycoder.com>
Sat, 9 Feb 2008 07:49:25 +0000 (07:49 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Sat, 9 Feb 2008 07:49:25 +0000 (07:49 +0000)
tsmux.c

diff --git a/tsmux.c b/tsmux.c
index fa63c37aab2e984e67becea2a148a09997b4817b..2ef07ce2315a4f4eeb3c47287abbb3a5b1a2aeae 100644 (file)
--- 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;
   }