[Ffmpeg-cvslog] r8236 - trunk/libavformat/asf.c

michael subversion
Mon Mar 5 02:19:36 CET 2007


Author: michael
Date: Mon Mar  5 02:19:36 2007
New Revision: 8236

Modified:
   trunk/libavformat/asf.c

Log:
off by one error


Modified: trunk/libavformat/asf.c
==============================================================================
--- trunk/libavformat/asf.c	(original)
+++ trunk/libavformat/asf.c	Mon Mar  5 02:19:36 2007
@@ -249,7 +249,7 @@ static int asf_read_header(AVFormatConte
                 st->need_parsing = 1;
                 /* We have to init the frame size at some point .... */
                 pos2 = url_ftell(pb);
-                if (gsize > (pos2 + 8 - pos1 + 24)) {
+                if (gsize >= (pos2 + 8 - pos1 + 24)) {
                     asf_st->ds_span = get_byte(pb);
                     asf_st->ds_packet_size = get_le16(pb);
                     asf_st->ds_chunk_size = get_le16(pb);




More information about the ffmpeg-cvslog mailing list