mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
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:
committed by
Zhao Zhili
parent
163b9b6c7e
commit
42029a8836
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user