This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 08f56d4898eafcaddc19b3aac9263e066e82f0c0
Author:     Ramiro Polla <[email protected]>
AuthorDate: Thu Apr 9 18:48:12 2026 +0200
Commit:     Ramiro Polla <[email protected]>
CommitDate: Thu Apr 23 16:46:42 2026 +0000

    avcodec/webp: remove write-only lossless field from WebPContext
---
 libavcodec/webp.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/libavcodec/webp.c b/libavcodec/webp.c
index 68f843139c..39fdd961a1 100644
--- a/libavcodec/webp.c
+++ b/libavcodec/webp.c
@@ -207,7 +207,6 @@ typedef struct WebPContext {
     int has_iccp;                       /* set after an ICCP chunk has been 
processed */
     int width;                          /* image width */
     int height;                         /* image height */
-    int lossless;                       /* indicates lossless or lossy */
 
     int nb_transforms;                  /* number of transforms */
     enum TransformType transforms[4];   /* transformations used in the image, 
in order */
@@ -1093,10 +1092,8 @@ static int vp8_lossless_decode_frame(AVCodecContext 
*avctx, AVFrame *p,
     WebPContext *s = avctx->priv_data;
     int w, h, ret, i, used;
 
-    if (!is_alpha_chunk) {
-        s->lossless = 1;
+    if (!is_alpha_chunk)
         avctx->pix_fmt = AV_PIX_FMT_ARGB;
-    }
 
     ret = init_get_bits8(&s->gb, data_start, data_size);
     if (ret < 0)
@@ -1309,7 +1306,6 @@ static int vp8_lossy_decode_frame(AVCodecContext *avctx, 
AVFrame *p,
         s->v.actually_webp = 1;
     }
     avctx->pix_fmt = s->has_alpha ? AV_PIX_FMT_YUVA420P : AV_PIX_FMT_YUV420P;
-    s->lossless = 0;
 
     if (data_size > INT_MAX) {
         av_log(avctx, AV_LOG_ERROR, "unsupported chunk size\n");

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to