From 61632b3d9dca940230d733c4eac0dd7e17df2d01 Mon Sep 17 00:00:00 2001 From: kapodamy Date: Thu, 20 Feb 2020 13:20:20 -0300 Subject: [PATCH] fixup for #3081 * dont write the "sbpg" box in video tracks --- .../java/org/schabi/newpipe/streams/Mp4FromDashWriter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/streams/Mp4FromDashWriter.java b/app/src/main/java/org/schabi/newpipe/streams/Mp4FromDashWriter.java index 57a7aaa9c..64e4534cb 100644 --- a/app/src/main/java/org/schabi/newpipe/streams/Mp4FromDashWriter.java +++ b/app/src/main/java/org/schabi/newpipe/streams/Mp4FromDashWriter.java @@ -291,7 +291,9 @@ public class Mp4FromDashWriter { sampleCount[i] = 1;// the index is not base zero sampleExtra[i] = -1; } - writeEntryArray(tablesInfo[i].sbgp, 1, sampleCount[i]); + if (tablesInfo[i].sbgp > 0) { + writeEntryArray(tablesInfo[i].sbgp, 1, sampleCount[i]); + } } if (auxBuffer == null) {