Commit b04cbbe2 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '7c51d79c'

* commit '7c51d79c':
  nsvdec: validate channels and samplerate

See: d633e15dMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 4ce67c96 7c51d79c
......@@ -621,6 +621,8 @@ null_chunk_retry:
bps = avio_r8(pb);
channels = avio_r8(pb);
samplerate = avio_rl16(pb);
if (!channels || !samplerate)
return AVERROR_INVALIDDATA;
asize-=4;
av_dlog(s, "NSV RAWAUDIO: bps %d, nchan %d, srate %d\n", bps, channels, samplerate);
if (fill_header) {
......
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