From 93f4d1646e9441b89e19073d6ad8e187bd705640 Mon Sep 17 00:00:00 2001 From: Matthieu Bouron Date: Tue, 31 May 2016 11:00:12 +0200 Subject: lavc/mediacodec: bypass width/height restrictions when looking for a decoder Codec width/height restrictions seem hardcoded at the OMX level and seem arbitrary. Bypassing those restrictions allows a device to decode streams at higher resolutions. For example it allows a Nexus 5 to decode h264 streams with a resolution higher than 1920x1080. --- libavcodec/mediacodecdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/mediacodecdec.c') diff --git a/libavcodec/mediacodecdec.c b/libavcodec/mediacodecdec.c index c21cebae94..712f984701 100644 --- a/libavcodec/mediacodecdec.c +++ b/libavcodec/mediacodecdec.c @@ -311,7 +311,7 @@ int ff_mediacodec_dec_init(AVCodecContext *avctx, MediaCodecDecContext *s, s->first_buffer_at = av_gettime(); - s->codec_name = ff_AMediaCodecList_getCodecNameByType(mime, avctx->width, avctx->height, avctx); + s->codec_name = ff_AMediaCodecList_getCodecNameByType(mime, avctx); if (!s->codec_name) { ret = AVERROR_EXTERNAL; goto fail; -- cgit v1.2.3