diff options
author | Chris "Koying" Browet <cbro@semperpax.com> | 2014-02-02 13:38:56 +0100 |
---|---|---|
committer | Chris "Koying" Browet <cbro@semperpax.com> | 2014-02-02 20:31:30 +0100 |
commit | 1011eac72061fe4a26f267d6a677633fa34b40b0 (patch) | |
tree | 7c1f01c5b22382ee04b26043e79c5a91b645beab | |
parent | 4a96b1be94c84b2b84797432b3f71699138f23d5 (diff) |
FIX: [mediacodec] Samsung h264 quirk
-rw-r--r-- | xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp b/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp index b70ab916b4..a50daaff3d 100644 --- a/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp +++ b/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp @@ -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) |