Skip to content

Commit

Permalink
Merge pull request xbmc#17353 from fritsch/maxwidth
Browse files Browse the repository at this point in the history
DVDVideoCodecAndroidMediaCodec: Properly set MAX WIDTH and MAX HEIGHT (thanks to cerarp)
  • Loading branch information
fritsch authored and Maven85 committed May 5, 2020
1 parent b78219e commit f8844fa
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1172,6 +1172,8 @@ bool CDVDVideoCodecAndroidMediaCodec::ConfigureMediaCodec(void)
AMediaFormat_setString(mediaformat, AMEDIAFORMAT_KEY_MIME, m_mime.c_str());
AMediaFormat_setInt32(mediaformat, AMEDIAFORMAT_KEY_WIDTH, m_hints.width);
AMediaFormat_setInt32(mediaformat, AMEDIAFORMAT_KEY_HEIGHT, m_hints.height);
AMediaFormat_setInt32(mediaformat, AMEDIAFORMAT_KEY_MAX_WIDTH, m_hints.width);
AMediaFormat_setInt32(mediaformat, AMEDIAFORMAT_KEY_MAX_HEIGHT, m_hints.height);
AMediaFormat_setInt32(mediaformat, AMEDIAFORMAT_KEY_MAX_INPUT_SIZE, 0);

if (CJNIBase::GetSDKVersion() >= 23 && m_render_surface)
Expand Down

0 comments on commit f8844fa

Please sign in to comment.