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

Git pushed a commit to branch master
in repository ffmpeg.

commit 35e68c6492325fbd6f6e5c0f86ab3361d80ec1d1
Author:     James Almer <[email protected]>
AuthorDate: Sun Dec 14 14:30:35 2025 -0300
Commit:     James Almer <[email protected]>
CommitDate: Sun Dec 14 18:22:04 2025 -0300

    avcodec/libsvtjpegxsdec: only return AVERROR codes
    
    Signed-off-by: James Almer <[email protected]>
---
 libavcodec/libsvtjpegxsdec.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavcodec/libsvtjpegxsdec.c b/libavcodec/libsvtjpegxsdec.c
index c0ca447532..7a325c4446 100644
--- a/libavcodec/libsvtjpegxsdec.c
+++ b/libavcodec/libsvtjpegxsdec.c
@@ -101,7 +101,7 @@ static int svt_jpegxs_dec_decode(AVCodecContext* avctx, 
AVFrame* picture, int* g
         avpkt->data, avpkt->size, &svt_dec->config, &frame_size, 1 /*quick 
search*/, svt_dec->decoder.proxy_mode);
     if (err) {
         av_log(avctx, AV_LOG_ERROR, 
"svt_jpeg_xs_decoder_get_single_frame_size_with_proxy failed, err=%d\n", err);
-        return err;
+        return AVERROR_EXTERNAL;
     }
     if (avpkt->size < frame_size) {
         av_log(avctx, AV_LOG_ERROR, "Not enough data in a packet.\n");
@@ -124,7 +124,7 @@ static int svt_jpegxs_dec_decode(AVCodecContext* avctx, 
AVFrame* picture, int* g
                                        &svt_dec->decoder, avpkt->data, 
avpkt->size, &svt_dec->config);
         if (err) {
             av_log(avctx, AV_LOG_ERROR, "svt_jpeg_xs_decoder_init failed, 
err=%d\n", err);
-            return err;
+            return AVERROR_EXTERNAL;
         }
 
         avctx->pix_fmt = ret;
@@ -160,13 +160,13 @@ static int svt_jpegxs_dec_decode(AVCodecContext* avctx, 
AVFrame* picture, int* g
     err = svt_jpeg_xs_decoder_send_frame(&svt_dec->decoder, &svt_dec->input, 1 
/*blocking*/);
     if (err) {
         av_log(avctx, AV_LOG_ERROR, "svt_jpeg_xs_decoder_send_frame failed, 
err=%d\n", err);
-        return err;
+        return AVERROR_EXTERNAL;
     }
 
     err = svt_jpeg_xs_decoder_get_frame(&svt_dec->decoder, &svt_dec->output, 1 
/*blocking*/);
     if (err) {
         av_log(avctx, AV_LOG_ERROR, "svt_jpeg_xs_decoder_get_frame failed, 
err=%d\n", err);
-        return err;
+        return AVERROR_EXTERNAL;
     }
 
     if (svt_dec->output.user_prv_ctx_ptr != avpkt) {

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

Reply via email to