summaryrefslogtreecommitdiff
path: root/libavformat/asf.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-03-05 01:19:36 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-03-05 01:19:36 +0000
commitb9c6d01b6fa47b8b355ce745499b346222a6460c (patch)
tree47ef05a4e83098557d676322bd42bcd49488e988 /libavformat/asf.c
parent43d414ba2a8a2dc5204c8694b8b6ccca0b3010d5 (diff)
off by one error
Originally committed as revision 8236 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/asf.c')
-rw-r--r--libavformat/asf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/asf.c b/libavformat/asf.c
index fc9ba1f81a..151a52a734 100644
--- a/libavformat/asf.c
+++ b/libavformat/asf.c
@@ -249,7 +249,7 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
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);