diff ivi_common.c @ 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 ba57caf45845
children 7dd2a45249a9
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);