aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-07-22 10:46:26 +0200
committerAnton Khirnov <anton@khirnov.net>2024-08-12 14:42:20 +0200
commit15bdca054f562b19811e1bbe295db542e0aca616 (patch)
tree43224b307c0d7d8813687e26d3888501d301c24f
parent43cde54fc14bc4644374b4736b2b7fff05359171 (diff)
downloadffmpeg-15bdca054f562b19811e1bbe295db542e0aca616.tar.gz
lavc/ffv1dec: drop code handling AV_PIX_FMT_FLAG_PAL
No paletted pixel formats are supported by the decoder.
-rw-r--r--libavcodec/ffv1dec.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c
index d2f09a3a80..0b0ae956a6 100644
--- a/libavcodec/ffv1dec.c
+++ b/libavcodec/ffv1dec.c
@@ -982,10 +982,7 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *rframe,
(sc->slice_y >> sv) + ((sc->slice_x >> sh) << pixshift);
}
- if (desc->flags & AV_PIX_FMT_FLAG_PAL) {
- dst[1] = p->data[1];
- src[1] = f->last_picture.f->data[1];
- }
+
av_image_copy(dst, p->linesize, src,
f->last_picture.f->linesize,
avctx->pix_fmt,