FIX: [mediacodec] Samsung h264 quirk
authorChris "Koying" Browet <cbro@semperpax.com>
Sun, 2 Feb 2014 12:38:56 +0000 (13:38 +0100)
committerChris "Koying" Browet <cbro@semperpax.com>
Sun, 2 Feb 2014 19:31:30 +0000 (20:31 +0100)
xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp

index b70ab91..a50daaf 100644 (file)
@@ -917,6 +917,13 @@ void CDVDVideoCodecAndroidMediaCodec::OutputFormatChanged(void)
   else
   {
     // Android device quirks and fixes
+
+    // Samsung Quirk: ignore width/height/stride/slice: http://code.google.com/p/android/issues/detail?id=37768#c3
+    if (strstr(m_codecname.c_str(), "OMX.SEC.avc.dec") != NULL || strstr(m_codecname.c_str(), "OMX.SEC.avcdec") != NULL)
+    {
+      width = stride = m_hints.width;
+      height = slice_height = m_hints.height;
+    }
     if (stride <= width)
         stride = width;
     if (slice_height <= height)