Browse Source

lavf/brstm: allow larger block sizes

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.8
Rodger Combs Michael Niedermayer 10 years ago
parent
commit
db426031dd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/brstm.c

+ 1
- 1
libavformat/brstm.c View File

@@ -223,7 +223,7 @@ static int read_header(AVFormatContext *s)
}

b->block_size = read32(s);
if (b->block_size > UINT16_MAX / st->codec->channels)
if (b->block_size > UINT32_MAX / st->codec->channels)
return AVERROR_INVALIDDATA;
b->block_size *= st->codec->channels;



Loading…
Cancel
Save