You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02: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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user