[FFmpeg-devel] [PATCH] avcodec/vorbisdec: don't abort on EOD when decoding residuals
James Almer
jamrial at gmail.com
Fri Feb 7 18:47:51 EET 2025
Fixes ticket #11427
Signed-off-by: James Almer <jamrial at gmail.com>
---
It may be a good idea to ensure the timeout fuzzer case doesn't regress
after this.
libavcodec/vorbisdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/vorbisdec.c b/libavcodec/vorbisdec.c
index 218e855f7a..321408723d 100644
--- a/libavcodec/vorbisdec.c
+++ b/libavcodec/vorbisdec.c
@@ -1470,7 +1470,7 @@ static av_always_inline int vorbis_residue_decode_internal(vorbis_context *vc,
vorbis_codebook codebook = vc->codebooks[vqbook];
if (get_bits_left(gb) <= 0)
- return AVERROR_INVALIDDATA;
+ return 0;
if (vr_type == 0) {
--
2.48.1
More information about the ffmpeg-devel
mailing list