projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49f73e8
)
Bug fix of wrong duration
52/247552/1
accepted/tizen_unified
accepted/tizen/unified/20201117.124131
submit/tizen/20201112.054726
submit/tizen/20201116.031718
author
hj kim
<backto.kim@samsung.com>
Thu, 12 Nov 2020 05:02:14 +0000
(14:02 +0900)
committer
hj kim
<backto.kim@samsung.com>
Thu, 12 Nov 2020 05:02:14 +0000
(14:02 +0900)
Change-Id: I97a603a69afa5fd339ef1fd87defef467f2e05b5
libavformat/mov.c
patch
|
blob
|
history
diff --git
a/libavformat/mov.c
b/libavformat/mov.c
index
b975e01
..
37e9584
100755
(executable)
--- a/
libavformat/mov.c
+++ b/
libavformat/mov.c
@@
-2942,7
+2942,8
@@
static int mov_read_trex(MOVContext *c, AVIOContext *pb, MOVAtom atom)
return err;
}
- c->fc->duration = AV_NOPTS_VALUE; // the duration from mvhd is not representing the whole file when fragments are used.
+ if (c->fc->duration == 0)
+ 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 */