avcodec/mimic: Fix runtime error: left shift of negative value -1