Permalink
Browse files

Merge pull request #4113 from koying/fixamcintel

MediaCodec fixes for omx.intel (Samsung tab 3 10")
  • Loading branch information...
2 parents 86b108c + d32e2a7 commit fdc042180bf309f25c88e035f17552f42a0abec7 @t-nelson t-nelson committed Jan 30, 2014
Showing with 3 additions and 2 deletions.
  1. +3 −2 xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp
@@ -58,6 +58,7 @@ static bool CanSurfaceRenderWhiteList(const std::string &name)
"OMX.Nvidia",
"OMX.rk",
"OMX.qcom",
+ "OMX.Intel",
NULL
};
for (const char **ptr = cansurfacerender_decoders; *ptr; ptr++)
@@ -916,9 +917,9 @@ void CDVDVideoCodecAndroidMediaCodec::OutputFormatChanged(void)
else
{
// Android device quirks and fixes
- if (stride <= 0)
+ if (stride <= width)
stride = width;
- if (slice_height <= 0)
+ if (slice_height <= height)
{
slice_height = height;
if (color_format == CJNIMediaCodecInfoCodecCapabilities::COLOR_FormatYUV420Planar)

0 comments on commit fdc0421

Please sign in to comment.