avcodec/imm4: fix artifacts on some files with special coding mode