From 3dd03e4d4c4d58db457dd198f179a19a168fc3c7 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Wed, 22 Apr 2026 20:54:13 +0200 Subject: [PATCH] avcodec/libvorbisenc: Cleanup on error Signed-off-by: Andreas Rheinhardt --- libavcodec/libvorbisenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libvorbisenc.c b/libavcodec/libvorbisenc.c index 5ac8bf0fbe..f8bb794a04 100644 --- a/libavcodec/libvorbisenc.c +++ b/libavcodec/libvorbisenc.c @@ -328,7 +328,7 @@ static av_cold int libvorbis_encode_init(AVCodecContext *avctx) } if ((ret = libvorbis_get_priming_samples(&s->vi, avctx))) - return ret; + goto error; avctx->frame_size = LIBVORBIS_FRAME_SIZE; ff_af_queue_init(avctx, &s->afq);