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:
8ffc5f9
)
Make sure that the calculated duration doesn't decrease
author
David Conrad
<lessen42@gmail.com>
Wed, 5 Sep 2007 00:25:40 +0000
(
00:25
+0000)
committer
David Conrad
<lessen42@gmail.com>
Wed, 5 Sep 2007 00:25:40 +0000
(
00:25
+0000)
Originally committed as revision 10374 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/matroskaenc.c
patch
|
blob
|
history
diff --git
a/libavformat/matroskaenc.c
b/libavformat/matroskaenc.c
index
fcb3470
..
7fba6af
100644
(file)
--- a/
libavformat/matroskaenc.c
+++ b/
libavformat/matroskaenc.c
@@
-748,7
+748,7
@@
static int mkv_write_packet(AVFormatContext *s, AVPacket *pkt)
if (ret < 0) return ret;
}
- mkv->duration =
pkt->pts + pkt->duration
;
+ mkv->duration =
FFMAX(mkv->duration, pkt->pts + pkt->duration)
;
return 0;
}