Mercurial > libavcodec.hg
comparison mpegaudiodec.c @ 3687:bfcf76cad06a libavcodec
print more correct error messges
author | michael |
---|---|
date | Fri, 08 Sep 2006 08:27:51 +0000 |
parents | faa8dc533ad3 |
children | b3149af07681 |
comparison
equal
deleted
inserted
replaced
3686:5fc587a5feea | 3687:bfcf76cad06a |
---|---|
2620 else | 2620 else |
2621 avctx->frame_size = 1152; | 2621 avctx->frame_size = 1152; |
2622 break; | 2622 break; |
2623 } | 2623 } |
2624 | 2624 |
2625 if(s->frame_size<=0 || s->frame_size < buf_size){ | 2625 if(s->frame_size<=0 || s->frame_size > buf_size){ |
2626 av_log(avctx, AV_LOG_ERROR, "incomplete frame\n"); | 2626 av_log(avctx, AV_LOG_ERROR, "incomplete frame\n"); |
2627 return -1; | 2627 return -1; |
2628 }else if(s->frame_size < buf_size){ | |
2629 av_log(avctx, AV_LOG_ERROR, "incorrect frame size\n"); | |
2628 } | 2630 } |
2629 | 2631 |
2630 out_size = mp_decode_frame(s, out_samples, buf, buf_size); | 2632 out_size = mp_decode_frame(s, out_samples, buf, buf_size); |
2631 if(out_size>=0) | 2633 if(out_size>=0) |
2632 *data_size = out_size; | 2634 *data_size = out_size; |