diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-12-03 10:24:42 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-12-03 10:24:42 +0000 |
commit | a57c41b2c5fcb9ca51b855070c436e13dc4c5394 (patch) | |
tree | 2677cc6d62fd7abc8a484b94180a03c51e49356d /libavformat/asf-enc.c | |
parent | 7548783bc5cfd67f1fba9aedd75ac54d43ac01d3 (diff) | |
download | ffmpeg-a57c41b2c5fcb9ca51b855070c436e13dc4c5394.tar.gz |
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
Diffstat (limited to 'libavformat/asf-enc.c')
-rw-r--r-- | libavformat/asf-enc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/asf-enc.c b/libavformat/asf-enc.c index ef2dd278a9..5121965b25 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); } |