Commit 5f4b4c2a authored by michael's avatar michael

off by one error


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8236 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8aa5148d
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment