Browse Source

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
tags/v0.5
Michael Niedermayer 18 years ago
parent
commit
a57c41b2c5
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/asf-enc.c

+ 2
- 0
libavformat/asf-enc.c View 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);
}


Loading…
Cancel
Save