diff mbox series

[FFmpeg-devel,1/3] lavc/ffv1dec: drop code handling AV_PIX_FMT_FLAG_PAL

Message ID 20240722094322.28916-1-anton@khirnov.net
State New
Headers show
Series [FFmpeg-devel,1/3] lavc/ffv1dec: drop code handling AV_PIX_FMT_FLAG_PAL | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov July 22, 2024, 9:43 a.m. UTC
No paletted pixel formats are supported by the decoder.
---
 libavcodec/ffv1dec.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c
index 7dc4a537a9..aa2c35880e 100644
--- a/libavcodec/ffv1dec.c
+++ b/libavcodec/ffv1dec.c
@@ -981,10 +981,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,