mpeg12enc: use sign_extend() function