avcodec/mpegvideo: Fix undefined shift in ff_mpv_lowest_referenced_row()
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 11 Mar 2015 16:59:59 +0000 (17:59 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 11 Mar 2015 16:59:59 +0000 (17:59 +0100)
commit2391e46430fa2af28542124dbcfc935c0a5ce82c
tree71af28002876de1136143c2e6654fd888e2cfbb1
parent9b2a964ceeaba09fbd71a82ce58344614761e9ee
avcodec/mpegvideo: Fix undefined shift in ff_mpv_lowest_referenced_row()

Also moves the shift out of the inner loop

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