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

Git pushed a commit to branch master
in repository ffmpeg.

commit cfb40c912927fdd2c1186b7b6aca468422da23db
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun Sep 13 02:18:21 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sat Oct 3 19:02:42 2026 +0000

    avcodec/flashsv: keep the bit reader in sync when a block fails to decode
---
 libavcodec/flashsv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c
index ba5c995006..5a88cc5077 100644
--- a/libavcodec/flashsv.c
+++ b/libavcodec/flashsv.c
@@ -263,7 +263,6 @@ static int flashsv_decode_block(AVCodecContext *avctx, 
const AVPacket *avpkt,
             return ret;
         }
     }
-    skip_bits_long(gb, 8 * block_size); /* skip the consumed bits */
     return 0;
 }
 
@@ -475,6 +474,7 @@ static int flashsv_decode_frame(AVCodecContext *avctx, 
AVFrame *rframe,
                                          i + j * (h_blocks + !!h_part)))
                     av_log(avctx, AV_LOG_ERROR,
                            "error in decompression of block %dx%d\n", i, j);
+                skip_bits_long(&gb, 8 * size);
             }
         }
     }

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