Commit 200a98d5ba for ffmpeg

commit 200a98d5ba4a6c792517d3ea464a5392737b4e33
Author: Michael Niedermayer <michael@niedermayer.cc>
Date:   Thu Oct 29 03:03:47 2026 +0100

    avcodec/exrenc: propagate the scanline encoder errors

    This is not a security issue.

    Found-by: Joshua Rogers (AISLE)

diff --git a/libavcodec/exrenc.c b/libavcodec/exrenc.c
index 68eb683aa5..2c697e66b6 100644
--- a/libavcodec/exrenc.c
+++ b/libavcodec/exrenc.c
@@ -437,15 +437,17 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
         /* nothing to do */
         break;
     case EXR_RLE:
-        encode_scanline_rle(s, frame);
+        ret = encode_scanline_rle(s, frame);
         break;
     case EXR_ZIP16:
     case EXR_ZIP1:
-        encode_scanline_zip(s, frame);
+        ret = encode_scanline_zip(s, frame);
         break;
     default:
         av_assert0(0);
     }
+    if (ret < 0)
+        return ret;

     switch (s->compression) {
     case EXR_RAW: