avcodec/bonk: properly handle some other errors

release/6.0
Paul B Mahol 2 years ago
parent 5dba4b217c
commit 0c7af7b954
  1. 4
      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)

Loading…
Cancel
Save