[SCM] libav/experimental: add assert to detect invalid packet_timestamp_start/end (that is check that the previous fix was sufficient)
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:10:04 UTC 2013
The following commit has been merged in the experimental branch:
commit a57c41b2c5fcb9ca51b855070c436e13dc4c5394
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Mon Dec 3 10:24:42 2007 +0000
add assert to detect invalid packet_timestamp_start/end
(that is check that the previous fix was sufficient)
Originally committed as revision 11153 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/asf-enc.c b/libavformat/asf-enc.c
index ef2dd27..5121965 100644
--- a/libavformat/asf-enc.c
+++ b/libavformat/asf-enc.c
@@ -584,6 +584,8 @@ static void flush_packet(AVFormatContext *s)
ASFContext *asf = s->priv_data;
int packet_hdr_size, packet_filled_size;
+ assert(asf->packet_timestamp_end >= asf->packet_timestamp_start);
+
if (asf->is_streamed) {
put_chunk(s, 0x4424, asf->packet_size, 0);
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list