avcodec/imc: Fix bitstream buffer padding

Fixes buffer overread

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>