Skip to content

Commit

Permalink
Fix MediaCodec green screen on Nexus 5
Browse files Browse the repository at this point in the history
  • Loading branch information
t-nelson committed Nov 7, 2013
1 parent d687d62 commit 46c8e7d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions xbmc/android/jni/MediaCodecInfo.cpp
Expand Up @@ -239,6 +239,8 @@ int CJNIMediaCodecInfoCodecCapabilities::COLOR_Format24BitARGB6666(0);
int CJNIMediaCodecInfoCodecCapabilities::COLOR_Format24BitABGR6666(0);
int CJNIMediaCodecInfoCodecCapabilities::COLOR_TI_FormatYUV420PackedSemiPlanar(0);
int CJNIMediaCodecInfoCodecCapabilities::COLOR_QCOM_FormatYUV420SemiPlanar(0);
/* This one isn't exposed in 4.4 */
int CJNIMediaCodecInfoCodecCapabilities::OMX_QCOM_COLOR_FormatYVU420SemiPlanarInterlace(0x7FA30C04);
const char *CJNIMediaCodecInfoCodecCapabilities::m_classname = "android/media/MediaCodecInfo$CodecCapabilities";

void CJNIMediaCodecInfoCodecCapabilities::PopulateStaticFields()
Expand Down
1 change: 1 addition & 0 deletions xbmc/android/jni/MediaCodecInfo.h
Expand Up @@ -179,6 +179,7 @@ class CJNIMediaCodecInfoCodecCapabilities : public CJNIBase
static int COLOR_Format24BitABGR6666;
static int COLOR_TI_FormatYUV420PackedSemiPlanar;
static int COLOR_QCOM_FormatYUV420SemiPlanar;
static int OMX_QCOM_COLOR_FormatYVU420SemiPlanarInterlace;

private:
CJNIMediaCodecInfoCodecCapabilities();
Expand Down
Expand Up @@ -924,7 +924,9 @@ void CDVDVideoCodecAndroidMediaCodec::OutputFormatChanged(void)
}
else if (color_format == CJNIMediaCodecInfoCodecCapabilities::COLOR_FormatYUV420SemiPlanar
|| color_format == CJNIMediaCodecInfoCodecCapabilities::COLOR_QCOM_FormatYUV420SemiPlanar
|| color_format == CJNIMediaCodecInfoCodecCapabilities::COLOR_TI_FormatYUV420PackedSemiPlanar)
|| color_format == CJNIMediaCodecInfoCodecCapabilities::COLOR_TI_FormatYUV420PackedSemiPlanar
|| color_format == CJNIMediaCodecInfoCodecCapabilities::OMX_QCOM_COLOR_FormatYVU420SemiPlanarInterlace)

{
CLog::Log(LOGDEBUG, "CDVDVideoCodecAndroidMediaCodec:: COLOR_FormatYUV420SemiPlanar");

Expand Down

0 comments on commit 46c8e7d

Please sign in to comment.