avcodec/amrnbde: Fix undefined shift in decode_pitch_vector()
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 11 Mar 2015 15:28:06 +0000 (16:28 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 11 Mar 2015 15:29:40 +0000 (16:29 +0100)
commit8c7a0932abeeabd86688b2cb495daa61c7fc19be
tree7e0c848f8769a1bf479e5337386c4bbe5b2ad835
parentfa74058dd36413aaa24c7e5982c66882d9dda6c1
avcodec/amrnbde: Fix undefined shift in decode_pitch_vector()

This also simplifies the code

Found-by: Clang -fsanitize=shift
Reported-by: Thierry Foucu <tfoucu@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/amrnbdec.c