# HG changeset patch # User michael # Date 1115323541 0 # Node ID ac78b35aa83885865dc632a46d497669ada14e56 # Parent c735e3e60ca777af77e2d91867da0f38592c4059 check for error diff -r c735e3e60ca7 -r ac78b35aa838 mpegaudiodec.c --- a/mpegaudiodec.c Thu May 05 14:34:47 2005 +0000 +++ b/mpegaudiodec.c Thu May 05 20:05:41 2005 +0000 @@ -2628,7 +2628,10 @@ } 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; } }