[FFmpeg-cvslog] avcodec/bonk: properly handle some other errors
Paul B Mahol
git at videolan.org
Tue Feb 7 18:14:04 EET 2023
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Feb 7 16:26:40 2023 +0100| [0c7af7b95484167c89ec0cb1bd6a862ecaf70e36] | committer: Paul B Mahol
avcodec/bonk: properly handle some other errors
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0c7af7b95484167c89ec0cb1bd6a862ecaf70e36
---
libavcodec/bonk.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/bonk.c b/libavcodec/bonk.c
index 061cc69a58..5f510e4910 100644
--- a/libavcodec/bonk.c
+++ b/libavcodec/bonk.c
@@ -330,10 +330,10 @@ static int bonk_decode(AVCodecContext *avctx, AVFrame *frame,
frame->nb_samples = FFMIN(s->samples_per_packet * s->down_sampling, s->nb_samples);
if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
- return ret;
+ goto fail;
if ((ret = init_get_bits8(gb, buf, buf_size)) < 0)
- return ret;
+ goto fail;
skip_bits(gb, s->skip);
if ((ret = intlist_read(s, s->k, s->n_taps, 0)) < 0)
More information about the ffmpeg-cvslog
mailing list