Skip to content

Commit

Permalink
Apply EOS flush workaround to stvm8 devices
Browse files Browse the repository at this point in the history
Issue:#5203
PiperOrigin-RevId: 224726041
  • Loading branch information
erdemguven authored and ojw28 committed Dec 19, 2018
1 parent 0e139e9 commit be2942c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,8 @@ private static boolean codecNeedsEosPropagationWorkaround(MediaCodecInfo codecIn
*/
private static boolean codecNeedsEosFlushWorkaround(String name) {
return (Util.SDK_INT <= 23 && "OMX.google.vorbis.decoder".equals(name))
|| (Util.SDK_INT <= 19 && "hb2000".equals(Util.DEVICE)
|| (Util.SDK_INT <= 19
&& ("hb2000".equals(Util.DEVICE) || "stvm8".equals(Util.DEVICE))
&& ("OMX.amlogic.avc.decoder.awesome".equals(name)
|| "OMX.amlogic.avc.decoder.awesome.secure".equals(name)));
}
Expand Down

0 comments on commit be2942c

Please sign in to comment.