check for error

Originally committed as revision 4183 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 20 years ago
parent 369a02c2f4
commit 02af2269c0
  1. 5
      libavcodec/mpegaudiodec.c

@ -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;
}
}

Loading…
Cancel
Save