projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
4a6f1be
)
Merge commit '22de0f8369f1f3edf1a55e1d275f3c07c617b53e'
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 20 Aug 2013 10:25:28 +0000
(12:25 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 20 Aug 2013 10:34:54 +0000
(12:34 +0200)
* commit '
22de0f8369f1f3edf1a55e1d275f3c07c617b53e
':
mov: Compute max duration among the tracks with a timescale
Merged-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/movenc.c
patch
|
blob
|
history
diff --git
a/libavformat/movenc.c
b/libavformat/movenc.c
index
8c07e60
..
5b70468
100644
(file)
--- a/
libavformat/movenc.c
+++ b/
libavformat/movenc.c
@@
-1877,7
+1877,7
@@
static int mov_write_mvhd_tag(AVIOContext *pb, MOVMuxContext *mov)
int version;
for (i = 0; i < mov->nb_streams; i++) {
- if (mov->tracks[i].entry > 0) {
+ if (mov->tracks[i].entry > 0
&& mov->tracks[i].timescale
) {
max_track_len_temp = av_rescale_rnd(mov->tracks[i].track_duration,
MOV_TIMESCALE,
mov->tracks[i].timescale,