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

Git pushed a commit to branch master
in repository ffmpeg.

commit 2903a3c1ec8c375c4a7c34980ffc19da43de21b3
Author:     James Almer <[email protected]>
AuthorDate: Sun Dec 14 14:27:15 2025 -0300
Commit:     James Almer <[email protected]>
CommitDate: Sun Dec 14 18:22:04 2025 -0300

    avcodec/libsvtjpegxsdec: reindent after the previous changes
    
    Signed-off-by: James Almer <[email protected]>
---
 libavcodec/libsvtjpegxsdec.c | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/libavcodec/libsvtjpegxsdec.c b/libavcodec/libsvtjpegxsdec.c
index 81efa60d05..6ff261bf49 100644
--- a/libavcodec/libsvtjpegxsdec.c
+++ b/libavcodec/libsvtjpegxsdec.c
@@ -42,7 +42,6 @@ typedef struct SvtJpegXsDecodeContext {
     svt_jpeg_xs_decoder_api_t decoder;
     uint32_t decoder_initialized;
 
-    uint32_t frame_size;
     int proxy_mode;
 } SvtJpegXsDecodeContext;
 
@@ -94,24 +93,25 @@ static int svt_jpegxs_dec_decode(AVCodecContext* avctx, 
AVFrame* picture, int* g
 {
     SvtJpegXsDecodeContext* svt_dec = avctx->priv_data;
     SvtJxsErrorType_t err = SvtJxsErrorNone;
+    uint32_t frame_size;
     int ret;
     svt_jpeg_xs_frame_t dec_input;
     svt_jpeg_xs_frame_t dec_output;
 
-        err = svt_jpeg_xs_decoder_get_single_frame_size_with_proxy(
-            avpkt->data, avpkt->size, &svt_dec->config, &svt_dec->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;
-        }
-        if (avpkt->size < svt_dec->frame_size) {
-            av_log(avctx, AV_LOG_ERROR, "Not enough data in a packet.\n");
-            return AVERROR(EINVAL);
-        }
-        if (avpkt->size > svt_dec->frame_size) {
-            av_log(avctx, AV_LOG_ERROR, "Single packet have data for more than 
one frame.\n");
-            return AVERROR(EINVAL);
-        }
+    err = svt_jpeg_xs_decoder_get_single_frame_size_with_proxy(
+        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;
+    }
+    if (avpkt->size < frame_size) {
+        av_log(avctx, AV_LOG_ERROR, "Not enough data in a packet.\n");
+        return AVERROR(EINVAL);
+    }
+    if (avpkt->size > frame_size) {
+        av_log(avctx, AV_LOG_ERROR, "Single packet have data for more than one 
frame.\n");
+        return AVERROR(EINVAL);
+    }
 
     ret = set_pix_fmt(avctx, &svt_dec->config);
     if (ret < 0)
@@ -142,9 +142,9 @@ static int svt_jpegxs_dec_decode(AVCodecContext* avctx, 
AVFrame* picture, int* g
     if (avctx->skip_frame == AVDISCARD_ALL)
         return 0;
 
-        dec_input.bitstream.buffer = avpkt->data;
-        dec_input.bitstream.allocation_size = avpkt->size;
-        dec_input.bitstream.used_size = avpkt->size;
+    dec_input.bitstream.buffer = avpkt->data;
+    dec_input.bitstream.allocation_size = avpkt->size;
+    dec_input.bitstream.used_size = avpkt->size;
     dec_input.user_prv_ctx_ptr = avpkt;
 
     ret = ff_get_buffer(avctx, picture, 0);

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

Reply via email to