Browse Source

off by one error

Originally committed as revision 8236 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 18 years ago
parent
commit
b9c6d01b6f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/asf.c

+ 1
- 1
libavformat/asf.c View File

@@ -249,7 +249,7 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
st->need_parsing = 1; st->need_parsing = 1;
/* We have to init the frame size at some point .... */ /* We have to init the frame size at some point .... */
pos2 = url_ftell(pb); 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_span = get_byte(pb);
asf_st->ds_packet_size = get_le16(pb); asf_st->ds_packet_size = get_le16(pb);
asf_st->ds_chunk_size = get_le16(pb); asf_st->ds_chunk_size = get_le16(pb);


Loading…
Cancel
Save