[FFmpeg-devel] [PATCH 2/3] avformat/aiffdec: sanity check block_align
Michael Niedermayer
michael at niedermayer.cc
Sun Oct 31 01:30:52 EEST 2021
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavformat/aiffdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/aiffdec.c b/libavformat/aiffdec.c
index 14063474260..648f231a523 100644
--- a/libavformat/aiffdec.c
+++ b/libavformat/aiffdec.c
@@ -368,7 +368,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;
}
--
2.17.1
More information about the ffmpeg-devel
mailing list