Skip to content
Snippets Groups Projects
Commit 9ef21a89 authored by Paul B Mahol's avatar Paul B Mahol
Browse files

avcodec/utvideodec: fix decoding odd sizes with interlaced video with some formats


Fixes #6316.

Signed-off-by: default avatarPaul B Mahol <onemda@gmail.com>
parent 0b8c159a
No related branches found
No related tags found
No related merge requests found
......@@ -238,7 +238,7 @@ static int decode_plane(UtvideoContext *c, int plane_no,
VLC vlc;
GetBitContext gb;
int prev, fsym;
const int cmask = ~(!plane_no && c->avctx->pix_fmt == AV_PIX_FMT_YUV420P);
const int cmask = c->interlaced ? ~(1 + 2 * (!plane_no && c->avctx->pix_fmt == AV_PIX_FMT_YUV420P)) : ~(!plane_no && c->avctx->pix_fmt == AV_PIX_FMT_YUV420P);
if (build_huff(src, &vlc, &fsym)) {
av_log(c->avctx, AV_LOG_ERROR, "Cannot build Huffman codes\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment