# HG changeset patch # User michael # Date 1157704071 0 # Node ID bfcf76cad06afd2b34cb1f678a4bb44b32e78414 # Parent 5fc587a5feeae7179eeb6d3deb3fc9cdc44e4854 print more correct error messges diff -r 5fc587a5feea -r bfcf76cad06a mpegaudiodec.c --- a/mpegaudiodec.c Thu Sep 07 04:08:34 2006 +0000 +++ b/mpegaudiodec.c Fri Sep 08 08:27:51 2006 +0000 @@ -2622,9 +2622,11 @@ break; } - if(s->frame_size<=0 || s->frame_size < buf_size){ + if(s->frame_size<=0 || s->frame_size > buf_size){ av_log(avctx, AV_LOG_ERROR, "incomplete frame\n"); return -1; + }else if(s->frame_size < buf_size){ + av_log(avctx, AV_LOG_ERROR, "incorrect frame size\n"); } out_size = mp_decode_frame(s, out_samples, buf, buf_size);