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