dashenc: increase buffer time hint in the manifest
authorAnton Schubert <ischluff@mailbox.org>
Thu, 26 Jan 2017 23:25:09 +0000 (00:25 +0100)
committerMartin Storsjö <martin@martin.st>
Fri, 27 Jan 2017 12:34:17 +0000 (14:34 +0200)
to avoid rebuffering on the clientside for difficult network conditions.

Signed-off-by: Anton Schubert <ischluff@mailbox.org>
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/dashenc.c

index 865f50a..44785cd 100644 (file)
@@ -481,7 +481,7 @@ static int write_manifest(AVFormatContext *s, int final)
         }
     }
     avio_printf(out, "\tminBufferTime=\"");
-    write_time(out, c->last_duration);
+    write_time(out, c->last_duration * 2);
     avio_printf(out, "\">\n");
     avio_printf(out, "\t<ProgramInformation>\n");
     if (title) {