diff --git a/libavcodec/ivi.c b/libavcodec/ivi.c index d0e94c09d9..2a9da6411f 100644 --- a/libavcodec/ivi.c +++ b/libavcodec/ivi.c @@ -428,6 +428,10 @@ av_cold int ff_ivi_init_tiles(IVIPlaneDesc *planes, t_height = !p ? tile_height : (tile_height + 3) >> 2; if (!p && planes[0].num_bands == 4) { + if (t_width % 2 || t_height % 2) { + avpriv_request_sample(NULL, "Odd tiles"); + return AVERROR_PATCHWELCOME; + } t_width >>= 1; t_height >>= 1; }