Commit cfb40c9129 for ffmpeg
commit cfb40c912927fdd2c1186b7b6aca468422da23db
Author: Michael Niedermayer <michael@niedermayer.cc>
Date: Sun Sep 13 02:18:21 2026 +0200
avcodec/flashsv: keep the bit reader in sync when a block fails to decode
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);
}
}
}