From 891799e00f17987b890b5f71aa308eb76ca74ce3 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sun, 15 Feb 2015 21:06:22 +0100 Subject: media_codecs: fix Netflix The current Netflix app tries very hard to find a codec which supports AdaptivePlayback. As our HW-codec doesn't support that, the Google H.264 software-codec gets used. But it is incapable of decoding the stream from Netflix, returning H264SWDEC_STRM_ERR. The hw-codec plays the stream just fine. This removes the declaration of adaptive-playback from the (broken) software-codec which causes Netflix to use hw-based decoding. Change-Id: I50b33f445a7db5bd7ad59d200277c193c68e3ba7 --- configs/media_codecs_google_video.xml | 112 ++++++++++++++++++++++++++++++++++ p51xx-common.mk | 2 +- 2 files changed, 113 insertions(+), 1 deletion(-) create mode 100644 configs/media_codecs_google_video.xml diff --git a/configs/media_codecs_google_video.xml b/configs/media_codecs_google_video.xml new file mode 100644 index 0000000..dde73cf --- /dev/null +++ b/configs/media_codecs_google_video.xml @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/p51xx-common.mk b/p51xx-common.mk index 1a9efe9..627744e 100755 --- a/p51xx-common.mk +++ b/p51xx-common.mk @@ -57,10 +57,10 @@ PRODUCT_PROPERTY_OVERRIDES += \ # Media profiles PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/media_codecs.xml:system/etc/media_codecs.xml \ + $(LOCAL_PATH)/configs/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \ $(LOCAL_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \ - frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \ frameworks/av/media/libstagefright/data/media_codecs_ffmpeg.xml:system/etc/media_codecs_ffmpeg.xml # Keylayout -- cgit v1.1