Merge commit '7c51d79ca7'
* commit '7c51d79ca7': nsvdec: validate channels and samplerate See:d633e15d7dMerged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
b04cbbe255
1 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue