mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/bonk: properly handle some other errors
This commit is contained in:
parent
5dba4b217c
commit
0c7af7b954
@ -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);
|
frame->nb_samples = FFMIN(s->samples_per_packet * s->down_sampling, s->nb_samples);
|
||||||
if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
|
if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
|
||||||
return ret;
|
goto fail;
|
||||||
|
|
||||||
if ((ret = init_get_bits8(gb, buf, buf_size)) < 0)
|
if ((ret = init_get_bits8(gb, buf, buf_size)) < 0)
|
||||||
return ret;
|
goto fail;
|
||||||
|
|
||||||
skip_bits(gb, s->skip);
|
skip_bits(gb, s->skip);
|
||||||
if ((ret = intlist_read(s, s->k, s->n_taps, 0)) < 0)
|
if ((ret = intlist_read(s, s->k, s->n_taps, 0)) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user