This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
Make sure that the calculated duration doesn't decrease
Originally committed as revision 10374 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
David Conrad
18 years ago
parent
8ffc5f9e92
commit
7f8582dfc6
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavformat/matroskaenc.c
+ 1
- 1
libavformat/matroskaenc.c
View File
@@ -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;
}
Write
Preview
Loading…
Cancel
Save