[FFmpeg-cvslog] indeo5: fix division by 0 in ff_ivi_init_tiles()
Michael Niedermayer
git at videolan.org
Wed Dec 28 22:26:21 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 28 21:31:00 2011 +0100| [92e2b59dec8c0124a209ce24f23450df9607d9d8] | committer: Michael Niedermayer
indeo5: fix division by 0 in ff_ivi_init_tiles()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=92e2b59dec8c0124a209ce24f23450df9607d9d8
---
libavcodec/ivi_common.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavcodec/ivi_common.c b/libavcodec/ivi_common.c
index 3ccef28..f917b3a 100644
--- a/libavcodec/ivi_common.c
+++ b/libavcodec/ivi_common.c
@@ -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];
More information about the ffmpeg-cvslog
mailing list