changeset 11402:43ae6b3f9e15 libavcodec

Scale tile dimensions in case both local decoding and scalability mode are used in Indeo 5 stream. Patch by Maxim ($indeo5dec_author)
author kostya
date Mon, 08 Mar 2010 06:49:16 +0000
parents e340262ba532
children 128f82b41fc1
files ivi_common.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);