mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-03 13:24:05 +00:00
avcodec/utvideodec: fix decoding odd sizes with interlaced video with some formats
Fixes #6316. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
0b8c159a93
commit
9ef21a897c
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user