ffmpeg | branch: master | Christophe Gisquet <christophe.gisq...@gmail.com> | Sat Sep 20 18:23:08 2014 +0000| [a0844935354bc210ecb042101aa9985ed5de975e] | committer: Michael Niedermayer
alacenc: fix incorrect buffer use The issue lies in actually dead code ("for now it's not used"). Noticed-by: Justin Ruggles Signed-off-by: Michael Niedermayer <michae...@gmx.at> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a0844935354bc210ecb042101aa9985ed5de975e --- libavcodec/alacenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/alacenc.c b/libavcodec/alacenc.c index b9ad899..fd5bf66 100644 --- a/libavcodec/alacenc.c +++ b/libavcodec/alacenc.c @@ -444,7 +444,7 @@ static void write_element(AlacEncodeContext *s, // TODO: determine when this will actually help. for now it's not used. if (prediction_type == 15) { // 2nd pass 1st order filter - int32_t *residual = s->predictor_buf[channels]; + int32_t *residual = s->predictor_buf[i]; for (j = s->frame_size - 1; j > 0; j--) residual[j] -= residual[j - 1]; } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog