PR #22555 opened by Scott Theisen (ulmus-scott) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22555 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22555.patch
With 1080i MPEG2 video, amazon fire stick uses a different stride from what is returned. --- >From MythTV >https://github.com/MythTV/mythtv/commit/b44def2f8baba6d944a12aae73f7e6c551151cc7 > . Originally submitted to the mailing list without reply. >From c5e526296f25a481bc0fa10140926c6d37f81d03 Mon Sep 17 00:00:00 2001 From: Peter Bennett <[email protected]> Date: Sun, 14 Oct 2018 18:37:04 -0400 Subject: [PATCH] libavcodec/mediacodec: MythTV Fix for incorrect stride with amazon fire stick With 1080i MPEG2 video, amazon fire stick uses a different stride from what is returned. --- libavcodec/mediacodecdec_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/mediacodecdec_common.c b/libavcodec/mediacodecdec_common.c index 9b91c8edf5..9a627c06de 100644 --- a/libavcodec/mediacodecdec_common.c +++ b/libavcodec/mediacodecdec_common.c @@ -583,6 +583,8 @@ static int mediacodec_dec_parse_video_format(AVCodecContext *avctx, MediaCodecDe } else if (strstr(s->codec_name, "OMX.SEC.avc.dec")) { s->slice_height = avctx->height; s->stride = avctx->width; + } else if (strstr(s->codec_name, "OMX.MTK.VIDEO.DECODER.MPEG2")) { + s->slice_height = s->height; } else if (s->slice_height == 0) { s->slice_height = s->height; } -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
