mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
aiffdec: fix division by zero
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
This commit is contained in:
parent
f04c27fe7c
commit
c143a9c96f
@ -380,7 +380,7 @@ static int aiff_read_packet(AVFormatContext *s,
|
||||
size = st->codecpar->block_align;
|
||||
break;
|
||||
default:
|
||||
size = (MAX_SIZE / st->codecpar->block_align) * st->codecpar->block_align;
|
||||
size = st->codecpar->block_align ? (MAX_SIZE / st->codecpar->block_align) * st->codecpar->block_align : MAX_SIZE;
|
||||
}
|
||||
size = FFMIN(max_size, size);
|
||||
res = av_get_packet(s->pb, pkt, size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user