Commit 92e2b59d authored by Michael Niedermayer's avatar Michael Niedermayer

indeo5: fix division by 0 in ff_ivi_init_tiles()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a1ca4531
......@@ -260,6 +260,8 @@ int av_cold ff_ivi_init_tiles(IVIPlaneDesc *planes, int tile_width, int tile_hei
t_width >>= 1;
t_height >>= 1;
}
if(t_width<=0 || t_height<=0)
return AVERROR(EINVAL);
for (b = 0; b < planes[p].num_bands; b++) {
band = &planes[p].bands[b];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment