Commit 02af2269 authored by Michael Niedermayer's avatar Michael Niedermayer

check for error

Originally committed as revision 4183 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 369a02c2
......@@ -2628,7 +2628,10 @@ static int decode_frame(AVCodecContext * avctx,
}
s->inbuf_ptr = s->inbuf;
s->frame_size = 0;
*data_size = out_size;
if(out_size>=0)
*data_size = out_size;
else
av_log(avctx, AV_LOG_DEBUG, "Error while decoding mpeg audio frame\n"); //FIXME return -1 / but also return the number of bytes consumed
break;
}
}
......
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