--- a/libavcodec/mpegaudiodec.c.orig 2009-08-31 23:19:15.000000000 -0700 +++ b/libavcodec/mpegaudiodec.c 2009-08-31 23:20:05.000000000 -0700 @@ -2294,8 +2294,10 @@ *data_size = out_size; avctx->sample_rate = s->sample_rate; //FIXME maybe move the other codec info stuff from above here too - }else + }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 + *data_size = 0; + } s->frame_size = 0; return buf_size; }