Browse Source

Check for corrupted data in avs demuxer.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 1cce7def0a)
tags/n0.8.5
Laurent Aimar Michael Niedermayer 14 years ago
parent
commit
c23d5261f7
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/avs.c

+ 2
- 0
libavformat/avs.c View File

@@ -163,6 +163,8 @@ static int avs_read_packet(AVFormatContext * s, AVPacket * pkt)
sub_type = avio_r8(s->pb);
type = avio_r8(s->pb);
size = avio_rl16(s->pb);
if (size < 4)
return AVERROR_INVALIDDATA;
avs->remaining_frame_size -= size;

switch (type) {


Loading…
Cancel
Save