androidmedia: Fix slice-height for Tegra 3 devices
authorMatthieu Bouron <matthieu.bouron@collabora.com>
Mon, 4 May 2015 06:06:35 +0000 (08:06 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 4 May 2015 08:39:38 +0000 (10:39 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=748867

sys/androidmedia/gstamc.c

index 65551778bc810bac8be4224302401c9405a5294d..f9dbdba520dfc79d024557e40fe6ba1eb1380093 100644 (file)
@@ -1960,7 +1960,7 @@ gst_amc_color_format_info_set (GstAmcColorFormatInfo * color_format_info,
   if (slice_height == 0) {
     /* NVidia Tegra 3 on Nexus 7 does not set this */
     if (g_str_has_prefix (codec_info->name, "OMX.Nvidia."))
-      slice_height = GST_ROUND_UP_32 (height);
+      slice_height = GST_ROUND_UP_16 (height);
   }
 
   if (width == 0 || height == 0) {