avcodec/apedec: make left/right unsigned to avoid undefined behavior