ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Mon Oct 20 05:41:26 2014 +0200| [b5583fc3e002b57441b37d60f8728fd9b09ddc47] | committer: Michael Niedermayer
avutil/cast5: Fix off by one error Fixes fate-cast5 on alpha Signed-off-by: Michael Niedermayer <michae...@gmx.at> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b5583fc3e002b57441b37d60f8728fd9b09ddc47 --- libavutil/cast5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/cast5.c b/libavutil/cast5.c index 2309223..c0d6d1e 100644 --- a/libavutil/cast5.c +++ b/libavutil/cast5.c @@ -457,7 +457,7 @@ av_cold int av_cast5_init(AVCAST5* cs, const uint8_t *key, int key_bits) q[i]=AV_RB32(newKey+(4*i)); generate_round_keys(cs->rounds,cs->Km,q,p); generate_round_keys(cs->rounds,cs->Kr,q,p); - for (i=0;i<cs->rounds;i++) + for (i=0;i<=cs->rounds;i++) cs->Kr[i]=cs->Kr[i]&0x1f; return 0; } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog