{"action":"opened","issue":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/3835","repository_url":"https://api.github.com/repos/google/ExoPlayer","labels_url":"https://api.github.com/repos/google/ExoPlayer/issues/3835/labels{/name}","comments_url":"https://api.github.com/repos/google/ExoPlayer/issues/3835/comments","events_url":"https://api.github.com/repos/google/ExoPlayer/issues/3835/events","html_url":"https://github.com/google/ExoPlayer/issues/3835","id":296412248,"number":3835,"title":"MediaCodec initialisation fails.","user":{"login":"AntonAFA","id":22168611,"avatar_url":"https://avatars0.githubusercontent.com/u/22168611?v=4","gravatar_id":"","url":"https://api.github.com/users/AntonAFA","html_url":"https://github.com/AntonAFA","followers_url":"https://api.github.com/users/AntonAFA/followers","following_url":"https://api.github.com/users/AntonAFA/following{/other_user}","gists_url":"https://api.github.com/users/AntonAFA/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonAFA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonAFA/subscriptions","organizations_url":"https://api.github.com/users/AntonAFA/orgs","repos_url":"https://api.github.com/users/AntonAFA/repos","events_url":"https://api.github.com/users/AntonAFA/events{/privacy}","received_events_url":"https://api.github.com/users/AntonAFA/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-12T15:20:35Z","updated_at":"2018-02-12T15:20:35Z","closed_at":null,"author_association":"NONE","body":"### Issue description\r\nOn certain devices that use OMX.MTK.VIDEO.DECODER.AVC decoder, on DRM content ONLY we receive the below [error](#error). \r\n\r\n### Reproduction steps\r\n* Initialise SimpleExoPlayer\r\n* Prepare MediaSource with drm.\r\n* Note, that in prepare step, we are NOT attaching SimpleExoplayerView to view hierarchy, and \r\nonly doing so, after player state READY received. \r\n* Get the crash, immediately after prepare() called.\r\n\r\n### Link to test content\r\n\"uri\": \"https://storage.googleapis.com/wvmedia/cenc/h264/tears/tears.mpd\"\r\n\"drm_license_url\": \"https://proxy.uat.widevine.com/proxy?provider=widevine_test\"\r\n\r\n### Version of ExoPlayer being used\r\nWe can see this issue reproduced on Exoplayer 2.5.0 and above (including 2.6.1)\r\nPrevious Exoplayer versions work as expected.\r\n\r\n### Device(s) and version(s) of Android being used\r\nDevice - Meizu M5C, Lenovo K4 and Moto C+ (all of them with OMX.MTK.VIDEO.DECODER.AVC)\r\nAndroid version - 6.0 \r\n\r\n<a id=\"error\"></a>### A full bug report captured from the device\r\n```\r\ncom.google.android.exoplayer2.ExoPlaybackException\r\n    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.throwDecoderInitError(MediaCodecRenderer.java:418)\r\n    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodec(MediaCodecRenderer.java:405)\r\n    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.onInputFormatChanged(MediaCodecRenderer.java:839)\r\n    at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.onInputFormatChanged(MediaCodecVideoRenderer.java:455)\r\n    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:536)\r\n    at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:560)\r\n    at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:306)\r\n    at android.os.Handler.dispatchMessage(Handler.java:107)\r\n    at android.os.Looper.loop(Looper.java:207)\r\n    at android.os.HandlerThread.run(HandlerThread.java:61)\r\n Caused by: com.google.android.exoplayer2.mediacodec.MediaCodecRenderer$DecoderInitializationException: Decoder init failed: OMX.MTK.VIDEO.DECODER.AVC, Format(1, null, video/avc, 720\r\n    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodec(MediaCodecRenderer.java:405) \r\n    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.onInputFormatChanged(MediaCodecRenderer.java:839) \r\n    at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.onInputFormatChanged(MediaCodecVideoRenderer.java:455) \r\n    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:536) \r\n    at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:560) \r\n    at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:306) \r\n    at android.os.Handler.dispatchMessage(Handler.java:107) \r\n    at android.os.Looper.loop(Looper.java:207) \r\n    at android.os.HandlerThread.run(HandlerThread.java:61) \r\n Caused by: android.media.MediaCodec$CodecException: start failed\r\n    at android.media.MediaCodec.native_start(Native Method)\r\n    at android.media.MediaCodec.start(MediaCodec.java:1898)\r\n    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodec(MediaCodecRenderer.java:397)\r\n    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.onInputFormatChanged(MediaCodecRenderer.java:839) \r\n    at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.onInputFormatChanged(MediaCodecVideoRenderer.java:455) \r\n    at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:536) \r\n    at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:560) \r\n    at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:306) \r\n    at android.os.Handler.dispatchMessage(Handler.java:107) \r\n    at android.os.Looper.loop(Looper.java:207) \r\n    at android.os.HandlerThread.run(HandlerThread.java:61) \r\n```"}}
{"actor":{"display_login":"AntonAFA"}}