Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why MediaFormat.KEY_MAX_INPUT_SIZE of a/v is zero? #167

Closed
b95505017 opened this issue Sep 30, 2016 · 2 comments
Closed

Why MediaFormat.KEY_MAX_INPUT_SIZE of a/v is zero? #167

b95505017 opened this issue Sep 30, 2016 · 2 comments

Comments

@b95505017
Copy link

b95505017 commented Sep 30, 2016

I notice these two lines:

videoFormat.setInteger(MediaFormat.KEY_MAX_INPUT_SIZE, 0);
...
audioFormat.setInteger(MediaFormat.KEY_MAX_INPUT_SIZE, 0);

Just wondering why you set them to zero.
Thanks for this great project!

@begeekmyfriend
Copy link
Owner

The original code is from srs-sea , I guess this will fix MediaCodec bug on Android 4.1.

@nokite
Copy link

nokite commented May 4, 2017

Setting this to 0 allows me to play certain videos (HLS, DASH) on Galaxy Nexus without crashing. I'm not sure what Android versions or what Hardware is affected. My Galaxy Nexus has Android 4.3, which is higher than what other people have reported (but it's an old device).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants