mirror of
https://github.com/samsonjs/media.git
synced 2026-03-30 10:15:48 +00:00
Extend RK video_decoder workaround to newer API levels
Issue: #6184 PiperOrigin-RevId: 258527533
This commit is contained in:
parent
bba0a27cb6
commit
fa691035d3
1 changed files with 2 additions and 3 deletions
|
|
@ -1806,9 +1806,8 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
|
|||
*/
|
||||
private static boolean codecNeedsEosPropagationWorkaround(MediaCodecInfo codecInfo) {
|
||||
String name = codecInfo.name;
|
||||
return (Util.SDK_INT <= 17
|
||||
&& ("OMX.rk.video_decoder.avc".equals(name)
|
||||
|| "OMX.allwinner.video.decoder.avc".equals(name)))
|
||||
return (Util.SDK_INT <= 25 && "OMX.rk.video_decoder.avc".equals(name))
|
||||
|| (Util.SDK_INT <= 17 && "OMX.allwinner.video.decoder.avc".equals(name))
|
||||
|| ("Amazon".equals(Util.MANUFACTURER) && "AFTS".equals(Util.MODEL) && codecInfo.secure);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue