Bug fix of wrong duration 61/247561/4
authorhj kim <backto.kim@samsung.com>
Thu, 12 Nov 2020 05:50:45 +0000 (14:50 +0900)
committerhj kim <backto.kim@samsung.com>
Tue, 1 Dec 2020 07:05:55 +0000 (07:05 +0000)
Change-Id: Ifbf39b5b2a1634c8c45d9d2cc50688a09005b550

libavformat/mov.c

index dfb41b9..9e9d61a 100644 (file)
@@ -4697,6 +4697,9 @@ static int mov_read_trex(MOVContext *c, AVIOContext *pb, MOVAtom atom)
         return err;
     }
 
+#ifdef __TIZEN__
+    if (c->fc->duration == 0)
+#endif
     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++];