androidmedia: Fix slice-height for Tegra 3 devices

https://bugzilla.gnome.org/show_bug.cgi?id=748867
This commit is contained in:
Matthieu Bouron 2015-05-04 08:06:35 +02:00 committed by Sebastian Dröge
parent 8d41c3e393
commit 21ff3ae0b0

View file

@ -1960,7 +1960,7 @@ gst_amc_color_format_info_set (GstAmcColorFormatInfo * color_format_info,
if (slice_height == 0) { if (slice_height == 0) {
/* NVidia Tegra 3 on Nexus 7 does not set this */ /* NVidia Tegra 3 on Nexus 7 does not set this */
if (g_str_has_prefix (codec_info->name, "OMX.Nvidia.")) 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) { if (width == 0 || height == 0) {