Mercurial > libavcodec.hg
changeset 2477:7b65742a88ac libavcodec
10l (missing overflow check)
author | michael |
---|---|
date | Mon, 31 Jan 2005 03:14:22 +0000 |
parents | 38dbec9a148d |
children | 6744ea5ff950 |
files | mpegaudiodec.c |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegaudiodec.c Sun Jan 30 22:28:11 2005 +0000 +++ b/mpegaudiodec.c Mon Jan 31 03:14:22 2005 +0000 @@ -231,6 +231,9 @@ #if FRAC_BITS <= 15 if (e > 31) e = 31; +#else + if (e > 63) + e = 63; #endif m = table_4_3_value[value]; #if FRAC_BITS <= 15 @@ -2137,11 +2140,11 @@ if (fnum == 0) { static int pos = 0; - printf("pos=%d\n", pos); + av_log(NULL, AV_LOG_DEBUG, "pos=%d\n", pos); for(i=0;i<n;i++) { - printf(" %0.4f", (double)tab[i] / FRAC_ONE); + av_log(NULL, AV_LOG_DEBUG, " %0.4f", (double)tab[i] / FRAC_ONE); if ((i % 18) == 17) - printf("\n"); + av_log(NULL, AV_LOG_DEBUG, "\n"); } pos += n; }