[FFmpeg-soc] [soc]: r1088 - matroska/matroskaenc.c
conrad
subversion at mplayerhq.hu
Mon Aug 20 21:51:59 CEST 2007
Author: conrad
Date: Mon Aug 20 21:51:58 2007
New Revision: 1088
Log:
Make sure that the calculated duration doesn't decrease
Modified:
matroska/matroskaenc.c
Modified: matroska/matroskaenc.c
==============================================================================
--- matroska/matroskaenc.c (original)
+++ matroska/matroskaenc.c Mon Aug 20 21:51:58 2007
@@ -748,7 +748,7 @@ static int mkv_write_packet(AVFormatCont
if (ret < 0) return ret;
}
- mkv->duration = pkt->pts + pkt->duration;
+ mkv->duration = FFMAX(mkv->duration, pkt->pts + pkt->duration);
return 0;
}
More information about the FFmpeg-soc
mailing list