ffmpeg | branch: master | Anton Khirnov <an...@khirnov.net> | Mon Jul 22 
10:46:26 2024 +0200| [15bdca054f562b19811e1bbe295db542e0aca616] | committer: 
Anton Khirnov

lavc/ffv1dec: drop code handling AV_PIX_FMT_FLAG_PAL

No paletted pixel formats are supported by the decoder.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=15bdca054f562b19811e1bbe295db542e0aca616
---

 libavcodec/ffv1dec.c | 5 +----
 1 file changed, 1 insertion(+), 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,

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to