mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
mp3dec: propagate error code correctly.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
273fca9ac0
commit
7696a392e2
@ -1616,6 +1616,9 @@ static int mp_decode_frame(MPADecodeContext *s, OUT_INT *samples,
|
||||
s->last_buf_size += i;
|
||||
}
|
||||
|
||||
if(nb_frames < 0)
|
||||
return nb_frames;
|
||||
|
||||
/* get output buffer */
|
||||
if (!samples) {
|
||||
s->frame.nb_samples = s->avctx->frame_size;
|
||||
|
Loading…
Reference in New Issue
Block a user