add assert to detect invalid packet_timestamp_start/end
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 3 Dec 2007 10:24:42 +0000 (10:24 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 3 Dec 2007 10:24:42 +0000 (10:24 +0000)
(that is check that the previous fix was sufficient)

Originally committed as revision 11153 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/asf-enc.c

index ef2dd27..5121965 100644 (file)
@@ -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);
     }