Merge commit '7c51d79ca7badfb370c410b8f44c9142b938e2e6'
* commit '7c51d79ca7badfb370c410b8f44c9142b938e2e6': nsvdec: validate channels and samplerate See: d633e15d7d939f532326e2bc92097b12eba4d5ae Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
b04cbbe255
@ -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…
x
Reference in New Issue
Block a user