You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
indeo5: fix division by 0 in ff_ivi_init_tiles()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -260,6 +260,8 @@ int av_cold ff_ivi_init_tiles(IVIPlaneDesc *planes, int tile_width, int tile_hei
|
|||||||
t_width >>= 1;
|
t_width >>= 1;
|
||||||
t_height >>= 1;
|
t_height >>= 1;
|
||||||
}
|
}
|
||||||
|
if(t_width<=0 || t_height<=0)
|
||||||
|
return AVERROR(EINVAL);
|
||||||
|
|
||||||
for (b = 0; b < planes[p].num_bands; b++) {
|
for (b = 0; b < planes[p].num_bands; b++) {
|
||||||
band = &planes[p].bands[b];
|
band = &planes[p].bands[b];
|
||||||
|
Reference in New Issue
Block a user