mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 00:02:52 +00:00
avformat/nsvdec: Check asize for PCM
Fixes: CID1604527 Overflowed constant Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
cea4dbc903
commit
e83e246504
@ -617,7 +617,7 @@ null_chunk_retry:
|
||||
pkt = &nsv->ahead[NSV_ST_AUDIO];
|
||||
/* read raw audio specific header on the first audio chunk... */
|
||||
/* on ALL audio chunks ?? seems so! */
|
||||
if (asize && st[NSV_ST_AUDIO]->codecpar->codec_tag == MKTAG('P', 'C', 'M', ' ')/* && fill_header*/) {
|
||||
if (asize >= 4 && st[NSV_ST_AUDIO]->codecpar->codec_tag == MKTAG('P', 'C', 'M', ' ')/* && fill_header*/) {
|
||||
uint8_t bps;
|
||||
uint8_t channels;
|
||||
uint16_t samplerate;
|
||||
|
Loading…
Reference in New Issue
Block a user