changeset 2801:dafc142ae2e2 libavformat

add assert to detect invalid packet_timestamp_start/end (that is check that the previous fix was sufficient)
author michael
date Mon, 03 Dec 2007 10:24:42 +0000
parents 004fde969543
children ef333b18b760
files asf-enc.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/asf-enc.c	Mon Dec 03 10:23:09 2007 +0000
+++ b/asf-enc.c	Mon Dec 03 10:24:42 2007 +0000
@@ -584,6 +584,8 @@
     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);
     }