mirror of https://git.ffmpeg.org/ffmpeg.git
indeo5: fix division by 0 in ff_ivi_init_tiles()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a1ca45317d
commit
92e2b59dec
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue