Browse Source

asfdec: Don't read the video stream header if there isn't enough data

Originally committed as revision 24352 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/n0.8
Martin Storsjö 15 years ago
parent
commit
fed7959271
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/asfdec.c

+ 2
- 1
libavformat/asfdec.c View File

@@ -361,7 +361,8 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
st->codec->frame_size = 1; st->codec->frame_size = 1;
break; break;
} }
} else if (type == AVMEDIA_TYPE_VIDEO) {
} else if (type == AVMEDIA_TYPE_VIDEO &&
gsize - (url_ftell(pb) - pos1 + 24) >= 53) {
get_le32(pb); get_le32(pb);
get_le32(pb); get_le32(pb);
get_byte(pb); get_byte(pb);


Loading…
Cancel
Save