# HG changeset patch # User michael # Date 1089773622 0 # Node ID 6f44ab5ad03cfe1b40654282dc497add13b79167 # Parent ef54decf5624a01d47bd77394d42627a16306fcc more info about why init failed diff -r ef54decf5624 -r 6f44ab5ad03c mpegaudio.c --- a/mpegaudio.c Wed Jul 14 01:32:14 2004 +0000 +++ b/mpegaudio.c Wed Jul 14 02:53:42 2004 +0000 @@ -87,8 +87,10 @@ break; } } - if (i == 3) + if (i == 3){ + av_log(avctx, AV_LOG_ERROR, "Sampling rate %d is not allowed in mp2\n", freq); return -1; + } s->freq_index = i; /* encoding bitrate & frequency */ @@ -96,8 +98,10 @@ if (mpa_bitrate_tab[s->lsf][1][i] == bitrate) break; } - if (i == 15) + if (i == 15){ + av_log(avctx, AV_LOG_ERROR, "bitrate %d is not allowed in mp2\n", bitrate); return -1; + } s->bitrate_index = i; /* compute total header size & pad bit */