# HG changeset patch # User kostya # Date 1268030956 0 # Node ID 43ae6b3f9e1552ba0762fd8d13c26c84a0ebbdce # Parent e340262ba532a883640915e666cd1a3283bc58ba Scale tile dimensions in case both local decoding and scalability mode are used in Indeo 5 stream. Patch by Maxim ($indeo5dec_author) diff -r e340262ba532 -r 43ae6b3f9e15 ivi_common.c --- a/ivi_common.c Mon Mar 08 04:33:02 2010 +0000 +++ b/ivi_common.c Mon Mar 08 06:49:16 2010 +0000 @@ -256,6 +256,11 @@ t_width = !p ? tile_width : (tile_width + 3) >> 2; t_height = !p ? tile_height : (tile_height + 3) >> 2; + if (!p && planes[0].num_bands == 4) { + t_width >>= 1; + t_height >>= 1; + } + for (b = 0; b < planes[p].num_bands; b++) { band = &planes[p].bands[b]; x_tiles = IVI_NUM_TILES(band->width, t_width);