Skip to content

Commit

Permalink
Add amlogic avc decoder to eos flush workaround list
Browse files Browse the repository at this point in the history
A workaround for issue google#2120
  • Loading branch information
wendong-li committed Dec 1, 2016
1 parent df0e97f commit 47ad1e7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,10 @@ private static boolean codecNeedsEosPropagationWorkaround(String name) {
* buffer with {@link MediaCodec#BUFFER_FLAG_END_OF_STREAM} set. False otherwise.
*/
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)));
}

/**
Expand Down

0 comments on commit 47ad1e7

Please sign in to comment.