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

Git pushed a commit to branch release/9.1
in repository ffmpeg.

commit 9386acfbe0e14c61c5ab1cc1d2849e2d7fe8d5d2
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Oct 27 13:13:58 2026 +0100
Commit:     James Almer <[email protected]>
CommitDate: Wed Nov 11 12:44:39 2026 -0300

    avcodec/lcevcdec: move lcevc_flush_pictures() before lcevc_send_frame()
    
    (cherry picked from commit 902df73ba82de6550ebbe898cd4d8a93fefc2e66)
---
 libavcodec/lcevcdec.c | 50 +++++++++++++++++++++++++-------------------------
 1 file changed, 25 insertions(+), 25 deletions(-)

diff --git a/libavcodec/lcevcdec.c b/libavcodec/lcevcdec.c
index b79401f98d..f0ff739366 100644
--- a/libavcodec/lcevcdec.c
+++ b/libavcodec/lcevcdec.c
@@ -145,6 +145,31 @@ static int alloc_enhanced_frame(FFLCEVCFrame *frame_ctx,
     return 0;
 }
 
+static int lcevc_flush_pictures(FFLCEVCContext *lcevc)
+{
+    LCEVC_PictureHandle picture;
+    LCEVC_ReturnCode res;
+
+    while (1) {
+        AVFrame *base = NULL;
+        res = LCEVC_ReceiveDecoderBase (lcevc->decoder, &picture);
+        if (res != LCEVC_Success && res != LCEVC_Again)
+            return AVERROR_EXTERNAL;
+
+        if (res == LCEVC_Again)
+            break;
+
+        LCEVC_GetPictureUserData(lcevc->decoder, picture, (void **)&base);
+        av_frame_free(&base);
+
+        res = LCEVC_FreePicture(lcevc->decoder, picture);
+        if (res != LCEVC_Success)
+            return AVERROR_EXTERNAL;
+    }
+
+    return 0;
+}
+
 static int lcevc_send_frame(FFLCEVCFrame *frame_ctx, const AVFrame *in)
 {
     FFLCEVCContext *lcevc = frame_ctx->lcevc;
@@ -270,31 +295,6 @@ static int generate_output(FFLCEVCFrame *frame_ctx, 
AVFrame *out)
     return 0;
 }
 
-static int lcevc_flush_pictures(FFLCEVCContext *lcevc)
-{
-    LCEVC_PictureHandle picture;
-    LCEVC_ReturnCode res;
-
-    while (1) {
-        AVFrame *base = NULL;
-        res = LCEVC_ReceiveDecoderBase (lcevc->decoder, &picture);
-        if (res != LCEVC_Success && res != LCEVC_Again)
-            return AVERROR_EXTERNAL;
-
-        if (res == LCEVC_Again)
-            break;
-
-        LCEVC_GetPictureUserData(lcevc->decoder, picture, (void **)&base);
-        av_frame_free(&base);
-
-        res = LCEVC_FreePicture(lcevc->decoder, picture);
-        if (res != LCEVC_Success)
-            return AVERROR_EXTERNAL;
-    }
-
-    return 0;
-}
-
 static int lcevc_receive_frame(FFLCEVCFrame *frame_ctx, AVFrame *out)
 {
     FFLCEVCContext *lcevc = frame_ctx->lcevc;

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to