mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Merge pull request #2131
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=140720011
This commit is contained in:
parent
f3dbb74613
commit
53dcb82862
1 changed files with 4 additions and 1 deletions
|
|
@ -1071,7 +1071,10 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
|
||||||
* buffer with {@link MediaCodec#BUFFER_FLAG_END_OF_STREAM} set. False otherwise.
|
* buffer with {@link MediaCodec#BUFFER_FLAG_END_OF_STREAM} set. False otherwise.
|
||||||
*/
|
*/
|
||||||
private static boolean codecNeedsEosFlushWorkaround(String name) {
|
private static boolean codecNeedsEosFlushWorkaround(String name) {
|
||||||
return Util.SDK_INT <= 23 && "OMX.google.vorbis.decoder".equals(name);
|
return (Util.SDK_INT <= 23 && "OMX.google.vorbis.decoder".equals(name))
|
||||||
|
|| (Util.SDK_INT <= 19 && "hb2000".equals(Util.DEVICE)
|
||||||
|
&& ("OMX.amlogic.avc.decoder.awesome".equals(name)
|
||||||
|
|| "OMX.amlogic.avc.decoder.awesome.secure".equals(name)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue