- Problem
The duration of AV1 is always '0'sec.
- Cause
Initializing the duration is needed when fragments are used.
- Solution
Apply patch from FFmpeg.
Change-Id: I7d184cb8562ec874ada0037850e003d6e192fe72
c->trex_count = 0;
return err;
}
+
+ c->fc->duration = AV_NOPTS_VALUE; // the duration from mvhd is not representing the whole file when fragments are used.
+
trex = &c->trex_data[c->trex_count++];
avio_r8(pb); /* version */
avio_rb24(pb); /* flags */