[FFmpeg-cvslog] r22318 - trunk/libavcodec/ivi_common.c

kostya subversion
Mon Mar 8 07:49:16 CET 2010


Author: kostya
Date: Mon Mar  8 07:49:16 2010
New Revision: 22318

Log:
Scale tile dimensions in case both local decoding and scalability mode
are used in Indeo 5 stream.
Patch by Maxim ($indeo5dec_author)

Modified:
   trunk/libavcodec/ivi_common.c

Modified: trunk/libavcodec/ivi_common.c
==============================================================================
--- trunk/libavcodec/ivi_common.c	Mon Mar  8 06:04:29 2010	(r22317)
+++ trunk/libavcodec/ivi_common.c	Mon Mar  8 07:49:16 2010	(r22318)
@@ -256,6 +256,11 @@ int av_cold ff_ivi_init_tiles(IVIPlaneDe
         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);



More information about the ffmpeg-cvslog mailing list