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.
This commit is contained in:
Peter Bennett
2018-10-14 18:37:04 -04:00
committed by Zhao Zhili
parent 163b9b6c7e
commit 42029a8836

View File

@@ -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;
}