Skip to content

Commit

Permalink
libavcodec/mediacodec: MythTV Fix for incorrect stride with amazon fi…
Browse files Browse the repository at this point in the history
…re stick

With 1080i MPEG2 video, amazon fire stick uses a different stride from what
is returned.
  • Loading branch information
bennettpeter committed Nov 27, 2021
1 parent 4c85c80 commit 83a5207
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/external/FFmpeg/libavcodec/mediacodecdec_common.c
Expand Up @@ -481,6 +481,8 @@ static int mediacodec_dec_parse_format(AVCodecContext *avctx, MediaCodecDecConte
} 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;
}
Expand Down

0 comments on commit 83a5207

Please sign in to comment.