[FFmpeg-cvslog] avcodec/mpegaudioenc_template: dont crash on bitrate=0
Michael Niedermayer
git at videolan.org
Wed Apr 9 07:37:20 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Apr 9 05:16:52 2014 +0200| [9d66aa2c8fa60fe4a570021175ce66316baeb746] | committer: Michael Niedermayer
avcodec/mpegaudioenc_template: dont crash on bitrate=0
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9d66aa2c8fa60fe4a570021175ce66316baeb746
---
libavcodec/mpegaudioenc_template.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mpegaudioenc_template.c b/libavcodec/mpegaudioenc_template.c
index ae57328..5ae4269 100644
--- a/libavcodec/mpegaudioenc_template.c
+++ b/libavcodec/mpegaudioenc_template.c
@@ -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;
}
More information about the ffmpeg-cvslog
mailing list