Add bitstream restrictions to MediaTek devices and update decoder-errata.txt

This commit is contained in:
Cameron Gutman
2014-10-12 14:43:59 -07:00
parent a7c36dcde6
commit 69a5c0b5b3
2 changed files with 8 additions and 1 deletions

View File

@@ -10,4 +10,10 @@ This file serves to document some of the decoder errata when using MediaCodec ha
- Affected decoders: TI OMAP4
4. Some decoders require num_ref_frames=1 and max_dec_frame_buffering=1 to avoid crashing on SPS or first I-frame
- Affected decoders: Qualcomm in GS3 on 4.3+, Exynos 4
- Affected decoders: Qualcomm in GS3 on 4.3+, Exynos 4
5. Some decoders will hang if max_dec_frame_buffering is not present
- Affected decoders: MediaTek decoder in Fire HD 7 (2014)
6. Some decoders will hang if max_dec_frame_buffering IS present
- Affected decoders: Exynos 5 in Galaxy Note 10.1 (2014)

View File

@@ -67,6 +67,7 @@ public class MediaCodecDecoderRenderer implements VideoDecoderRenderer {
spsFixupBitstreamFixupDecoderPrefixes = new LinkedList<String>();
spsFixupBitstreamFixupDecoderPrefixes.add("omx.nvidia");
spsFixupBitstreamFixupDecoderPrefixes.add("omx.qcom");
spsFixupBitstreamFixupDecoderPrefixes.add("omx.mtk");
whitelistedAdaptiveResolutionPrefixes = new LinkedList<String>();
whitelistedAdaptiveResolutionPrefixes.add("omx.nvidia");