changeset 1859:9bc07f90d4a2 libavformat

off by one error
author michael
date Mon, 05 Mar 2007 01:19:36 +0000
parents 7ce72baa2ce5
children 255cd2d3c876
files asf.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/asf.c	Mon Mar 05 00:23:23 2007 +0000
+++ b/asf.c	Mon Mar 05 01:19:36 2007 +0000
@@ -249,7 +249,7 @@
                 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);