Commit 9d66aa2c authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpegaudioenc_template: dont crash on bitrate=0

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d98688ef
......@@ -108,7 +108,7 @@ static av_cold int MPA_encode_init(AVCodecContext *avctx)
s->freq_index = i;
/* encoding bitrate & frequency */
for(i=0;i<15;i++) {
for(i=1;i<15;i++) {
if (avpriv_mpa_bitrate_tab[s->lsf][1][i] == bitrate)
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment