Commit 7696a392 authored by Michael Niedermayer's avatar Michael Niedermayer

mp3dec: propagate error code correctly.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 273fca9a
...@@ -1616,6 +1616,9 @@ static int mp_decode_frame(MPADecodeContext *s, OUT_INT *samples, ...@@ -1616,6 +1616,9 @@ static int mp_decode_frame(MPADecodeContext *s, OUT_INT *samples,
s->last_buf_size += i; s->last_buf_size += i;
} }
if(nb_frames < 0)
return nb_frames;
/* get output buffer */ /* get output buffer */
if (!samples) { if (!samples) {
s->frame.nb_samples = s->avctx->frame_size; s->frame.nb_samples = s->avctx->frame_size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment