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

Git pushed a commit to branch master
in repository ffmpeg.

commit 26b92aec405f723d920fb5c0582d8bd32dde51fe
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Oct 13 05:35:56 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Tue Oct 20 20:41:50 2026 +0000

    avcodec/mpegvideo_enc: return the error code of encode_picture()
    
    The error was replaced by -1, shown to the user as EPERM.
    
    Fixes: PUUZOCCqIPbY
    Fixes: wrong error code
    Wrong error code Replicated through UnModified FFmpeg with ffmpeg command 
line
    Found during triage of the review of 
https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24758
---
 libavcodec/mpegvideo_enc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 9f5ec9f650..c9da032616 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -1969,7 +1969,7 @@ vbv_retry:
             pkt->size = avctx->internal->byte_buffer_size;
         }
         if (ret < 0)
-            return -1;
+            return ret;
 
         frame_end(m);
 

-- 
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