mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Merge commit '7c51d79ca7badfb370c410b8f44c9142b938e2e6'
* commit '7c51d79ca7badfb370c410b8f44c9142b938e2e6':
nsvdec: validate channels and samplerate
See: d633e15d7d
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…
Reference in New Issue
Block a user