avformat/aiffdec: sanity check block_align
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 93f7776921)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
f2a206309e
commit
ed968f5290
1 changed files with 1 additions and 1 deletions
|
|
@ -362,7 +362,7 @@ got_sound:
|
|||
if (!st->codecpar->block_align && st->codecpar->codec_id == AV_CODEC_ID_QCELP) {
|
||||
av_log(s, AV_LOG_WARNING, "qcelp without wave chunk, assuming full rate\n");
|
||||
st->codecpar->block_align = 35;
|
||||
} else if (!st->codecpar->block_align) {
|
||||
} else if (st->codecpar->block_align <= 0) {
|
||||
av_log(s, AV_LOG_ERROR, "could not find COMM tag or invalid block_align value\n");
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue